Browse Source

Tenant Management Blazor refactored

Replace Abstract Base: #5962
pull/6008/head
Ahmet 6 years ago
parent
commit
fa03241d75
  1. 7
      modules/tenant-management/src/Volo.Abp.TenantManagement.Blazor/Pages/TenantManagement/TenantManagement.razor
  2. 7
      modules/tenant-management/src/Volo.Abp.TenantManagement.Blazor/Pages/TenantManagement/TenantManagement.razor.cs

7
modules/tenant-management/src/Volo.Abp.TenantManagement.Blazor/Pages/TenantManagement/TenantManagement.razor

@ -1,11 +1,10 @@
@page "/tenant-management/tenants" @page "/tenant-management/tenants"
@attribute [Authorize(TenantManagementPermissions.Tenants.Default)] @attribute [Authorize(TenantManagementPermissions.Tenants.Default)]
@using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Authorization
@using Microsoft.Extensions.Localization
@using Volo.Abp.TenantManagement.Localization
@using Volo.Abp.FeatureManagement.Blazor.Components @using Volo.Abp.FeatureManagement.Blazor.Components
@inherits TenantManagementBase @using Microsoft.AspNetCore.Components.Forms
@inject IStringLocalizer<AbpTenantManagementResource> L
@inherits AbpCrudPageBase<ITenantAppService, TenantDto, Guid, GetTenantsInput, TenantCreateDto, TenantUpdateDto>
@* ************************* PAGE HEADER ************************* *@ @* ************************* PAGE HEADER ************************* *@
<Row> <Row>

7
modules/tenant-management/src/Volo.Abp.TenantManagement.Blazor/Pages/TenantManagement/TenantManagement.razor.cs

@ -4,11 +4,11 @@ using Blazorise;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Volo.Abp.BlazoriseUI; using Volo.Abp.BlazoriseUI;
using Volo.Abp.FeatureManagement.Blazor.Components; using Volo.Abp.FeatureManagement.Blazor.Components;
using Volo.Abp.TenantManagement.Localization;
namespace Volo.Abp.TenantManagement.Blazor.Pages.TenantManagement namespace Volo.Abp.TenantManagement.Blazor.Pages.TenantManagement
{ {
public abstract class TenantManagementBase public partial class TenantManagement
: AbpCrudPageBase<ITenantAppService, TenantDto, Guid, GetTenantsInput, TenantCreateDto, TenantUpdateDto>
{ {
protected const string FeatureProviderName = "T"; protected const string FeatureProviderName = "T";
@ -22,8 +22,9 @@ namespace Volo.Abp.TenantManagement.Blazor.Pages.TenantManagement
protected TenantInfoModel TenantInfo; protected TenantInfoModel TenantInfo;
public TenantManagementBase() public TenantManagement()
{ {
LocalizationResource = typeof(AbpTenantManagementResource);
ObjectMapperContext = typeof(AbpTenantManagementBlazorModule); ObjectMapperContext = typeof(AbpTenantManagementBlazorModule);
CreatePolicyName = TenantManagementPermissions.Tenants.Create; CreatePolicyName = TenantManagementPermissions.Tenants.Create;

Loading…
Cancel
Save