Skip to content

Commit

Permalink
Move menu items to Administration
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 committed Aug 20, 2023
1 parent 17cbf23 commit 047cea7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<AbpVersion>7.3.0</AbpVersion>
<EasyAbpAbpDynamicQueryModuleVersion>0.8.0</EasyAbpAbpDynamicQueryModuleVersion>
<EasyAbpAbpDynamicPermissionModuleVersion>1.3.0</EasyAbpAbpDynamicPermissionModuleVersion>
<EasyAbpAbpDynamicPermissionModuleVersion>1.4.0</EasyAbpAbpDynamicPermissionModuleVersion>

</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.10.0</Version>
<Version>0.11.0</Version>
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
<AbpProjectType>module</AbpProjectType>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,28 @@ private async Task ConfigureMainMenu(MenuConfigurationContext context)

if (await context.IsGrantedAsync(DynamicEntityPermissions.FieldDefinition.Default) ||
await context.IsGrantedAsync(DynamicEntityPermissions.ModelDefinition.Default)
)
)
{
var menu = new ApplicationMenuItem(DynamicEntityMenus.DynamicEntityManagement, l["Menu:DynamicEntityManagement"]);

var menu = new ApplicationMenuItem(DynamicEntityMenus.DynamicEntityManagement,
l["Menu:DynamicEntityManagement"], icon: "fa fa-database");

if (await context.IsGrantedAsync(DynamicEntityPermissions.FieldDefinition.Default))
{
menu.AddItem(
new ApplicationMenuItem(DynamicEntityMenus.FieldDefinition, l["Menu:FieldDefinition"], "/DynamicEntity/FieldDefinition")
new ApplicationMenuItem(DynamicEntityMenus.FieldDefinition, l["Menu:FieldDefinition"],
"/DynamicEntity/FieldDefinition")
);
}

if (await context.IsGrantedAsync(DynamicEntityPermissions.ModelDefinition.Default))
{
menu.AddItem(
new ApplicationMenuItem(DynamicEntityMenus.ModelDefinition, l["Menu:ModelDefinition"], "/DynamicEntity/ModelDefinition")
new ApplicationMenuItem(DynamicEntityMenus.ModelDefinition, l["Menu:ModelDefinition"],
"/DynamicEntity/ModelDefinition")
);
}

context.Menu.AddItem(menu);
context.Menu.GetAdministration().AddItem(menu);
}
}
}
Expand Down

0 comments on commit 047cea7

Please sign in to comment.