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 22, 2023
1 parent 6374d4f commit c883b69
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ private async Task ConfigureMainMenuAsync(MenuConfigurationContext context)
{
var l = context.GetLocalizer<CommonResource>(); //Add main menu items.

var weChatManagementMenuItem = context.Menu.Items.GetOrAdd(i => i.Name == CommonMenus.Prefix,
() => new ApplicationMenuItem(CommonMenus.Prefix, l["Menu:EasyAbpWeChatManagement"]));
var weChatManagementMenuItem = context.Menu.GetAdministration().Items.GetOrAdd(i => i.Name == CommonMenus.Prefix,
() => new ApplicationMenuItem(CommonMenus.Prefix, l["Menu:EasyAbpWeChatManagement"], icon: "fa fa-weixin"));

if (await context.IsGrantedAsync(CommonPermissions.WeChatApp.Default))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ private async Task ConfigureMainMenuAsync(MenuConfigurationContext context)

if (!miniProgramManagementMenuItem.Items.IsNullOrEmpty())
{
var weChatManagementMenuItem = context.Menu.Items.GetOrAdd(i => i.Name == CommonMenus.Prefix,
() => new ApplicationMenuItem("EasyAbpWeChatManagement", l["Menu:EasyAbpWeChatManagement"]));
var weChatManagementMenuItem = context.Menu.GetAdministration().Items.GetOrAdd(i => i.Name == CommonMenus.Prefix,
() => new ApplicationMenuItem("EasyAbpWeChatManagement", l["Menu:EasyAbpWeChatManagement"], icon: "fa fa-weixin"));

weChatManagementMenuItem.Items.Add(miniProgramManagementMenuItem);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ private async Task ConfigureMainMenuAsync(MenuConfigurationContext context)

if (!thirdPartyPlatformManagementMenuItem.Items.IsNullOrEmpty())
{
var weChatManagementMenuItem = context.Menu.Items.GetOrAdd(i => i.Name == CommonMenus.Prefix,
() => new ApplicationMenuItem("EasyAbpWeChatManagement", l["Menu:EasyAbpWeChatManagement"]));
var weChatManagementMenuItem = context.Menu.GetAdministration().Items.GetOrAdd(i => i.Name == CommonMenus.Prefix,
() => new ApplicationMenuItem("EasyAbpWeChatManagement", l["Menu:EasyAbpWeChatManagement"], icon: "fa fa-weixin"));

weChatManagementMenuItem.Items.Add(thirdPartyPlatformManagementMenuItem);
}
Expand Down

0 comments on commit c883b69

Please sign in to comment.