From a4422421a866ec8d6a8187fdbe7f40c1bd6671bb Mon Sep 17 00:00:00 2001 From: gdlcf88 Date: Tue, 22 Aug 2023 14:32:25 +0800 Subject: [PATCH] Move menu items to Administration --- .../Menus/ReviewManagementMenuContributor.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/EasyAbp.ReviewManagement.Web/Menus/ReviewManagementMenuContributor.cs b/src/EasyAbp.ReviewManagement.Web/Menus/ReviewManagementMenuContributor.cs index 1befbb0..6f2ab0a 100644 --- a/src/EasyAbp.ReviewManagement.Web/Menus/ReviewManagementMenuContributor.cs +++ b/src/EasyAbp.ReviewManagement.Web/Menus/ReviewManagementMenuContributor.cs @@ -21,7 +21,8 @@ private async Task ConfigureMainMenu(MenuConfigurationContext context) var l = context.GetLocalizer(); //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)) { @@ -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); } } }