mirror of https://github.com/abpframework/abp.git
12 changed files with 68 additions and 18 deletions
@ -0,0 +1,27 @@ |
|||
using Volo.Abp.Features; |
|||
using Volo.Abp.Localization; |
|||
using Volo.Abp.SettingManagement.Localization; |
|||
using Volo.Abp.Validation.StringValues; |
|||
|
|||
namespace Volo.Abp.SettingManagement |
|||
{ |
|||
public class SettingManagementFeatureDefinitionProvider: FeatureDefinitionProvider |
|||
{ |
|||
public override void Define(IFeatureDefinitionContext context) |
|||
{ |
|||
var group = context.AddGroup(SettingManagementFeatures.GroupName, |
|||
L("Feature:SettingManagementGroup")); |
|||
|
|||
group.AddFeature(SettingManagementFeatures.Enable, |
|||
"true", |
|||
L("Feature:SettingManagementEnable"), |
|||
L("Feature:SettingManagementEnableDescription"), |
|||
new ToggleStringValueType()); |
|||
} |
|||
|
|||
private static LocalizableString L(string name) |
|||
{ |
|||
return LocalizableString.Create<AbpSettingManagementResource>(name); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,9 @@ |
|||
namespace Volo.Abp.SettingManagement |
|||
{ |
|||
public class SettingManagementFeatures |
|||
{ |
|||
public const string GroupName = "TextManagement"; |
|||
|
|||
public const string Enable = GroupName + ".Enable"; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue