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 9451777 commit a442242
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ private async Task ConfigureMainMenu(MenuConfigurationContext context)
var l = context.GetLocalizer<ReviewManagementResource>();
//Add main menu items.

var reviewManagementMenuItem = new ApplicationMenuItem(ReviewManagementMenus.Prefix, l["Menu:ReviewManagement"]);
var reviewManagementMenuItem = new ApplicationMenuItem(ReviewManagementMenus.Prefix,
l["Menu:ReviewManagement"], icon: "fa fa-comment");

if (await context.IsGrantedAsync(ReviewManagementPermissions.Review.Manage))
{
Expand All @@ -32,7 +33,7 @@ private async Task ConfigureMainMenu(MenuConfigurationContext context)

if (!reviewManagementMenuItem.Items.IsNullOrEmpty())
{
context.Menu.Items.Add(reviewManagementMenuItem);
context.Menu.GetAdministration().Items.Add(reviewManagementMenuItem);
}
}
}
Expand Down

0 comments on commit a442242

Please sign in to comment.