diff --git a/modules/feature-management/src/Volo.Abp.FeatureManagement.Blazor/Components/FeatureManagementModal.razor b/modules/feature-management/src/Volo.Abp.FeatureManagement.Blazor/Components/FeatureManagementModal.razor index 1feaf59202..8bc5e9dfe7 100644 --- a/modules/feature-management/src/Volo.Abp.FeatureManagement.Blazor/Components/FeatureManagementModal.razor +++ b/modules/feature-management/src/Volo.Abp.FeatureManagement.Blazor/Components/FeatureManagementModal.razor @@ -6,7 +6,7 @@ @L["Features"] - + @if (Groups == null || !Groups.Any()) @@ -33,55 +33,61 @@
@foreach (var feature in Groups[index].Features) { - var disabled = IsDisabled(feature.Provider.Name); +
+ @{ + var disabled = IsDisabled(feature.Provider.Name); - if (feature.ValueType is FreeTextStringValueType) - { - - @feature.DisplayName - - @if (feature.Description != null) + if (feature.ValueType is FreeTextStringValueType) { -
@feature.Description
+ + @feature.DisplayName + + @if (feature.Description != null) + { +
@feature.Description
+ } +
} -
- } - if (feature.ValueType is SelectionStringValueType) - { - var items = ((SelectionStringValueType) feature.ValueType).ItemSource.Items; - - - @feature.DisplayName - - @if (feature.Description != null) + if (feature.ValueType is SelectionStringValueType) { -
@feature.Description
+ var items = ((SelectionStringValueType) feature.ValueType).ItemSource.Items; + + + @feature.DisplayName + + @if (feature.Description != null) + { +
@feature.Description
+ } +
} -
- } - if (feature.ValueType is ToggleStringValueType) - { - - @feature.DisplayName - - @if (feature.Description != null) - { -
@feature.Description
+ if (feature.ValueType is ToggleStringValueType) + { + + + @feature.DisplayName + + @if (feature.Description != null) + { +
@feature.Description
+ } +
+ } } - } +
} @@ -95,4 +101,4 @@
- + \ No newline at end of file diff --git a/modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Pages/FeatureManagement/FeatureManagementModal.cshtml b/modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Pages/FeatureManagement/FeatureManagementModal.cshtml index 167de4943f..d537b099c4 100644 --- a/modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Pages/FeatureManagement/FeatureManagementModal.cshtml +++ b/modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Pages/FeatureManagement/FeatureManagementModal.cshtml @@ -58,7 +58,7 @@ group-style="margin-left: @(feature.Depth * 20)px"/> @if (feature.Description != null) { -
@feature.Description
+
@feature.Description
} } @@ -81,7 +81,7 @@ group-style="margin-left: @(feature.Depth * 25)px"/> @if (feature.Description != null) { -
@feature.Description
+
@feature.Description
} } @@ -105,7 +105,7 @@ @if (feature.Description != null) { -
@feature.Description
+
@feature.Description
} } diff --git a/modules/setting-management/src/Volo.Abp.SettingManagement.Domain.Shared/Volo/Abp/SettingManagement/SettingManagementFeatureDefinitionProvider.cs b/modules/setting-management/src/Volo.Abp.SettingManagement.Domain.Shared/Volo/Abp/SettingManagement/SettingManagementFeatureDefinitionProvider.cs index 23f0c071fd..9f27dd2c60 100644 --- a/modules/setting-management/src/Volo.Abp.SettingManagement.Domain.Shared/Volo/Abp/SettingManagement/SettingManagementFeatureDefinitionProvider.cs +++ b/modules/setting-management/src/Volo.Abp.SettingManagement.Domain.Shared/Volo/Abp/SettingManagement/SettingManagementFeatureDefinitionProvider.cs @@ -18,6 +18,13 @@ public class SettingManagementFeatureDefinitionProvider : FeatureDefinitionProvi L("Feature:SettingManagementEnable"), L("Feature:SettingManagementEnableDescription"), new ToggleStringValueType()); + + group.AddFeature( + "MaxNumber", + "", + L("Max number"), + new FixedLocalizableString("Test feature max number"), + new FreeTextStringValueType()); settingEnableFeature.CreateChild( SettingManagementFeatures.AllowTenantsToChangeEmailSettings, @@ -26,6 +33,14 @@ public class SettingManagementFeatureDefinitionProvider : FeatureDefinitionProvi L("Feature:AllowTenantsToChangeEmailSettingsDescription"), new ToggleStringValueType(), isAvailableToHost: false); + + settingEnableFeature.CreateChild( + "MinNumber", + "", + L("Min number"), + new FixedLocalizableString("Test feature min number"), + new FreeTextStringValueType(), + isAvailableToHost: false); } private static LocalizableString L(string name)