Refactor TenantNames.Master
This commit is contained in:
		@ -9,7 +9,7 @@
 | 
			
		||||
            <Label For="name" HelpText="The name of the tenant">Name: </Label>
 | 
			
		||||
        </td>
 | 
			
		||||
        <td>
 | 
			
		||||
            @if (name == Constants.MasterTenant)
 | 
			
		||||
            @if (name == TenantNames.Master)
 | 
			
		||||
            {
 | 
			
		||||
                <input id="name" class="form-control" @bind="@name" readonly />
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
@ -17,7 +17,7 @@ else
 | 
			
		||||
        </Header>
 | 
			
		||||
        <Row>
 | 
			
		||||
            <td><ActionLink Action="Edit" Parameters="@($"id=" + context.TenantId.ToString())" /></td>
 | 
			
		||||
            <td><ActionDialog Header="Delete Tenant" Message="@("Are You Sure You Wish To Delete The " + context.Name + " Tenant?")" Action="Delete" Security="SecurityAccessLevel.Host" Class="btn btn-danger" OnClick="@(async () => await DeleteTenant(context))" Disabled="@(context.Name == Constants.MasterTenant)" /></td>
 | 
			
		||||
            <td><ActionDialog Header="Delete Tenant" Message="@("Are You Sure You Wish To Delete The " + context.Name + " Tenant?")" Action="Delete" Security="SecurityAccessLevel.Host" Class="btn btn-danger" OnClick="@(async () => await DeleteTenant(context))" Disabled="@(context.Name == TenantNames.Master)" /></td>
 | 
			
		||||
            <td>@context.Name</td>
 | 
			
		||||
        </Row>
 | 
			
		||||
    </Pager>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user