mirror of https://github.com/abpframework/abp.git
committed by
GitHub
13 changed files with 83 additions and 20 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