Browse Source
Merge pull request #9361 from abpframework/cotur/feature-management-blazor-ui-fix
Fix Feature Management Blazor UI
pull/9362/head
ebicoglu
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
8 additions and
3 deletions
-
modules/feature-management/src/Volo.Abp.FeatureManagement.Blazor/Components/FeatureManagementModal.razor
-
modules/feature-management/src/Volo.Abp.FeatureManagement.Blazor/Components/FeatureManagementModal.razor.cs
|
|
@ -10,7 +10,7 @@ |
|
|
<CloseButton Clicked="CloseModal" /> |
|
|
<CloseButton Clicked="CloseModal" /> |
|
|
</ModalHeader> |
|
|
</ModalHeader> |
|
|
<ModalBody MaxHeight="50"> |
|
|
<ModalBody MaxHeight="50"> |
|
|
@if (Groups == null) |
|
|
@if (Groups == null || !Groups.Any()) |
|
|
{ |
|
|
{ |
|
|
<span>@L["NoFeatureFoundMessage"]</span> |
|
|
<span>@L["NoFeatureFoundMessage"]</span> |
|
|
} |
|
|
} |
|
|
|
|
|
@ -47,9 +47,14 @@ namespace Volo.Abp.FeatureManagement.Blazor.Components |
|
|
ToggleValues = new Dictionary<string, bool>(); |
|
|
ToggleValues = new Dictionary<string, bool>(); |
|
|
SelectionStringValues = new Dictionary<string, string>(); |
|
|
SelectionStringValues = new Dictionary<string, string>(); |
|
|
|
|
|
|
|
|
Groups = (await FeatureAppService.GetAsync(ProviderName, ProviderKey)).Groups; |
|
|
Groups = (await FeatureAppService.GetAsync(ProviderName, ProviderKey))?.Groups; |
|
|
|
|
|
|
|
|
SelectedTabName = GetNormalizedGroupName(Groups.First().Name); |
|
|
Groups ??= new List<FeatureGroupDto>(); |
|
|
|
|
|
|
|
|
|
|
|
if (Groups.Any()) |
|
|
|
|
|
{ |
|
|
|
|
|
SelectedTabName = GetNormalizedGroupName(Groups.First().Name); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
foreach (var featureGroupDto in Groups) |
|
|
foreach (var featureGroupDto in Groups) |
|
|
{ |
|
|
{ |
|
|
|