From f3846e3abcdd27cd1b88942c84884306ca3fccd8 Mon Sep 17 00:00:00 2001 From: gdlcf88 Date: Tue, 16 Jun 2020 16:12:05 +0800 Subject: [PATCH] Close #32: Improved menu item name --- .../src/EasyAbp.EShop.Orders.Web/OrdersMenuContributor.cs | 4 ++-- .../Pages/EShop/Orders/Orders/Order/Index.cshtml | 2 +- .../EasyAbp/EShop/Payments/Localization/Payments/cs.json | 4 ++-- .../EasyAbp/EShop/Payments/Localization/Payments/en.json | 4 ++-- .../EasyAbp/EShop/Payments/Localization/Payments/pl.json | 4 ++-- .../EShop/Payments/Localization/Payments/pt-BR.json | 4 ++-- .../EasyAbp/EShop/Payments/Localization/Payments/sl.json | 4 ++-- .../EasyAbp/EShop/Payments/Localization/Payments/tr.json | 4 ++-- .../EasyAbp/EShop/Payments/Localization/Payments/vi.json | 4 ++-- .../EShop/Payments/Localization/Payments/zh-Hans.json | 4 ++-- .../EShop/Payments/Localization/Payments/zh-Hant.json | 4 ++-- .../Pages/EShop/Payments/Payments/Payment/Index.cshtml | 2 +- .../Pages/EShop/Payments/Refunds/Refund/Index.cshtml | 2 +- .../EasyAbp.EShop.Payments.Web/PaymentsMenuContributor.cs | 6 +++--- .../Pages/EShop/Products/Categories/Category/Index.cshtml | 2 +- .../EShop/Products/ProductTypes/ProductType/Index.cshtml | 2 +- .../Pages/EShop/Products/Products/Product/Index.cshtml | 2 +- .../Pages/EShop/Products/Products/ProductSku/Index.cshtml | 2 +- .../EasyAbp.EShop.Products.Web/ProductsMenuContributor.cs | 8 ++++---- .../src/EasyAbp.EShop.Stores.Web/StoresMenuContributor.cs | 4 ++-- 20 files changed, 36 insertions(+), 36 deletions(-) diff --git a/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Web/OrdersMenuContributor.cs b/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Web/OrdersMenuContributor.cs index febf9cb4..3be700ae 100644 --- a/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Web/OrdersMenuContributor.cs +++ b/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Web/OrdersMenuContributor.cs @@ -24,7 +24,7 @@ namespace EasyAbp.EShop.Orders.Web { var l = context.GetLocalizer(); //Add main menu items. - var orderManagementMenuItem = new ApplicationMenuItem("OrderManagement", l["Menu:OrderManagement"]); + var orderManagementMenuItem = new ApplicationMenuItem("EasyAbpEShopOrders", l["Menu:OrderManagement"]); if (await context.IsGrantedAsync(OrdersPermissions.Orders.Manage)) { @@ -33,7 +33,7 @@ namespace EasyAbp.EShop.Orders.Web var defaultStore = (await storeAppService.GetDefaultAsync())?.Id; orderManagementMenuItem.AddItem( - new ApplicationMenuItem("Order", l["Menu:Order"], "/EShop/Orders/Orders/Order?storeId=" + defaultStore) + new ApplicationMenuItem("EasyAbpEShopOrdersOrder", l["Menu:Order"], "/EShop/Orders/Orders/Order?storeId=" + defaultStore) ); } diff --git a/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Web/Pages/EShop/Orders/Orders/Order/Index.cshtml b/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Web/Pages/EShop/Orders/Orders/Order/Index.cshtml index 7be7657b..9223169f 100644 --- a/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Web/Pages/EShop/Orders/Orders/Order/Index.cshtml +++ b/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Web/Pages/EShop/Orders/Orders/Order/Index.cshtml @@ -7,7 +7,7 @@ @{ PageLayout.Content.Title = L["Order"].Value; PageLayout.Content.BreadCrumb.Add(L["Menu:Order"].Value); - PageLayout.Content.MenuItemName = "Order"; + PageLayout.Content.MenuItemName = "EasyAbpEShopOrdersOrder"; var cardTitle = @L["Order"].Value; diff --git a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/cs.json b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/cs.json index 080c7226..5ee7b9e5 100644 --- a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/cs.json +++ b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/cs.json @@ -5,7 +5,7 @@ "Permission:Create": "Create", "Permission:Update": "Update", "Permission:Delete": "Delete", - "Menu:Payments": "MenuPayments", + "Menu:Payment": "MenuPayments", "Payment": "Payment", "PaymentStoreId": "PaymentStoreId", "CreatePayment": "CreatePayment", @@ -21,7 +21,7 @@ "PaymentItemRefundAmount": "PaymentItemRefundAmount", "SuccessfullyDeleted": "Successfully deleted", "Permission:Refunds": "Refunds", - "Menu:Refunds": "MenuRefunds", + "Menu:Refund": "MenuRefunds", "Refund": "Refund", "RefundStoreId": "RefundStoreId", "CreateRefund": "CreateRefund", diff --git a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/en.json b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/en.json index bff3eefa..cf67a491 100644 --- a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/en.json +++ b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/en.json @@ -6,7 +6,7 @@ "Permission:Create": "Create", "Permission:Update": "Update", "Permission:Delete": "Delete", - "Menu:Payments": "MenuPayments", + "Menu:Payment": "MenuPayments", "Payment": "Payment", "PaymentStoreId": "PaymentStoreId", "CreatePayment": "CreatePayment", @@ -22,7 +22,7 @@ "PaymentItemRefundAmount": "PaymentItemRefundAmount", "SuccessfullyDeleted": "Successfully deleted", "Permission:Refunds": "Refunds", - "Menu:Refunds": "MenuRefunds", + "Menu:Refund": "MenuRefunds", "Refund": "Refund", "RefundStoreId": "RefundStoreId", "CreateRefund": "CreateRefund", diff --git a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/pl.json b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/pl.json index 58d0dcab..87cdb1b1 100644 --- a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/pl.json +++ b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/pl.json @@ -5,7 +5,7 @@ "Permission:Create": "Create", "Permission:Update": "Update", "Permission:Delete": "Delete", - "Menu:Payments": "MenuPayments", + "Menu:Payment": "MenuPayments", "Payment": "Payment", "PaymentStoreId": "PaymentStoreId", "CreatePayment": "CreatePayment", @@ -21,7 +21,7 @@ "PaymentItemRefundAmount": "PaymentItemRefundAmount", "SuccessfullyDeleted": "Successfully deleted", "Permission:Refunds": "Refunds", - "Menu:Refunds": "MenuRefunds", + "Menu:Refund": "MenuRefunds", "Refund": "Refund", "RefundStoreId": "RefundStoreId", "CreateRefund": "CreateRefund", diff --git a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/pt-BR.json b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/pt-BR.json index 9d42eaea..075df33f 100644 --- a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/pt-BR.json +++ b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/pt-BR.json @@ -5,7 +5,7 @@ "Permission:Create": "Create", "Permission:Update": "Update", "Permission:Delete": "Delete", - "Menu:Payments": "MenuPayments", + "Menu:Payment": "MenuPayments", "Payment": "Payment", "PaymentStoreId": "PaymentStoreId", "CreatePayment": "CreatePayment", @@ -21,7 +21,7 @@ "PaymentItemRefundAmount": "PaymentItemRefundAmount", "SuccessfullyDeleted": "Successfully deleted", "Permission:Refunds": "Refunds", - "Menu:Refunds": "MenuRefunds", + "Menu:Refund": "MenuRefunds", "Refund": "Refund", "RefundStoreId": "RefundStoreId", "CreateRefund": "CreateRefund", diff --git a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/sl.json b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/sl.json index 60155915..34bfa6c8 100644 --- a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/sl.json +++ b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/sl.json @@ -6,7 +6,7 @@ "Permission:Create": "Create", "Permission:Update": "Update", "Permission:Delete": "Delete", - "Menu:Payments": "MenuPayments", + "Menu:Payment": "MenuPayments", "Payment": "Payment", "PaymentStoreId": "PaymentStoreId", "CreatePayment": "CreatePayment", @@ -22,7 +22,7 @@ "PaymentItemRefundAmount": "PaymentItemRefundAmount", "SuccessfullyDeleted": "Successfully deleted", "Permission:Refunds": "Refunds", - "Menu:Refunds": "MenuRefunds", + "Menu:Refund": "MenuRefunds", "Refund": "Refund", "RefundStoreId": "RefundStoreId", "CreateRefund": "CreateRefund", diff --git a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/tr.json b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/tr.json index 7c907e83..f8f9ff9b 100644 --- a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/tr.json +++ b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/tr.json @@ -6,7 +6,7 @@ "Permission:Create": "Create", "Permission:Update": "Update", "Permission:Delete": "Delete", - "Menu:Payments": "MenuPayments", + "Menu:Payment": "MenuPayments", "Payment": "Payment", "PaymentStoreId": "PaymentStoreId", "CreatePayment": "CreatePayment", @@ -22,7 +22,7 @@ "PaymentItemRefundAmount": "PaymentItemRefundAmount", "SuccessfullyDeleted": "Successfully deleted", "Permission:Refunds": "Refunds", - "Menu:Refunds": "MenuRefunds", + "Menu:Refund": "MenuRefunds", "Refund": "Refund", "RefundStoreId": "RefundStoreId", "CreateRefund": "CreateRefund", diff --git a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/vi.json b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/vi.json index 1b2d8732..35af052d 100644 --- a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/vi.json +++ b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/vi.json @@ -5,7 +5,7 @@ "Permission:Create": "Create", "Permission:Update": "Update", "Permission:Delete": "Delete", - "Menu:Payments": "MenuPayments", + "Menu:Payment": "MenuPayments", "Payment": "Payment", "PaymentStoreId": "PaymentStoreId", "CreatePayment": "CreatePayment", @@ -21,7 +21,7 @@ "PaymentItemRefundAmount": "PaymentItemRefundAmount", "SuccessfullyDeleted": "Successfully deleted", "Permission:Refunds": "Refunds", - "Menu:Refunds": "MenuRefunds", + "Menu:Refund": "MenuRefunds", "Refund": "Refund", "RefundStoreId": "RefundStoreId", "CreateRefund": "CreateRefund", diff --git a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/zh-Hans.json b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/zh-Hans.json index ea6dca33..5574d039 100644 --- a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/zh-Hans.json +++ b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/zh-Hans.json @@ -6,7 +6,7 @@ "Permission:Create": "Create", "Permission:Update": "Update", "Permission:Delete": "Delete", - "Menu:Payments": "MenuPayments", + "Menu:Payment": "MenuPayments", "Payment": "Payment", "PaymentStoreId": "PaymentStoreId", "CreatePayment": "CreatePayment", @@ -22,7 +22,7 @@ "PaymentItemRefundAmount": "PaymentItemRefundAmount", "SuccessfullyDeleted": "Successfully deleted", "Permission:Refunds": "Refunds", - "Menu:Refunds": "MenuRefunds", + "Menu:Refund": "MenuRefunds", "Refund": "Refund", "RefundStoreId": "RefundStoreId", "CreateRefund": "CreateRefund", diff --git a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/zh-Hant.json b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/zh-Hant.json index 31ad5344..289a6561 100644 --- a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/zh-Hant.json +++ b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Domain.Shared/EasyAbp/EShop/Payments/Localization/Payments/zh-Hant.json @@ -6,7 +6,7 @@ "Permission:Create": "Create", "Permission:Update": "Update", "Permission:Delete": "Delete", - "Menu:Payments": "MenuPayments", + "Menu:Payment": "MenuPayments", "Payment": "Payment", "PaymentStoreId": "PaymentStoreId", "CreatePayment": "CreatePayment", @@ -22,7 +22,7 @@ "PaymentItemRefundAmount": "PaymentItemRefundAmount", "SuccessfullyDeleted": "Successfully deleted", "Permission:Refunds": "Refunds", - "Menu:Refunds": "MenuRefunds", + "Menu:Refund": "MenuRefunds", "Refund": "Refund", "RefundStoreId": "RefundStoreId", "CreateRefund": "CreateRefund", diff --git a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Payments/Payment/Index.cshtml b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Payments/Payment/Index.cshtml index 9eb6a629..038bfeb5 100644 --- a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Payments/Payment/Index.cshtml +++ b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Payments/Payment/Index.cshtml @@ -10,7 +10,7 @@ @{ PageLayout.Content.Title = L["Payment"].Value; PageLayout.Content.BreadCrumb.Add(L["Menu:Payment"].Value); - PageLayout.Content.MenuItemName = "Payment"; + PageLayout.Content.MenuItemName = "EasyAbpEShopPaymentsPayment"; var cardTitle = @L["Payment"].Value; diff --git a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Refunds/Refund/Index.cshtml b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Refunds/Refund/Index.cshtml index 18615621..df133784 100644 --- a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Refunds/Refund/Index.cshtml +++ b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Refunds/Refund/Index.cshtml @@ -10,7 +10,7 @@ @{ PageLayout.Content.Title = L["Refund"].Value; PageLayout.Content.BreadCrumb.Add(L["Menu:Refund"].Value); - PageLayout.Content.MenuItemName = "Refund"; + PageLayout.Content.MenuItemName = "EasyAbpEShopPaymentsRefund"; var cardTitle = @L["Refund"].Value; diff --git a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/PaymentsMenuContributor.cs b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/PaymentsMenuContributor.cs index 84b3a3c7..5690ae78 100644 --- a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/PaymentsMenuContributor.cs +++ b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/PaymentsMenuContributor.cs @@ -35,7 +35,7 @@ namespace EasyAbp.EShop.Payments.Web { var l = context.GetLocalizer(); //Add main menu items. - var paymentManagementMenuItem = new ApplicationMenuItem("PaymentManagement", l["Menu:PaymentManagement"]); + var paymentManagementMenuItem = new ApplicationMenuItem("EasyAbpEShopPayments", l["Menu:PaymentManagement"]); var storeAppService = context.ServiceProvider.GetRequiredService(); @@ -44,13 +44,13 @@ namespace EasyAbp.EShop.Payments.Web if (await context.IsGrantedAsync(PaymentsPermissions.Payments.Manage)) { paymentManagementMenuItem.AddItem( - new ApplicationMenuItem("Payments", l["Menu:Payments"], "/EShop/Payments/Payments/Payment?storeId=" + defaultStore) + new ApplicationMenuItem("EasyAbpEShopPaymentsPayment", l["Menu:Payment"], "/EShop/Payments/Payments/Payment?storeId=" + defaultStore) ); } if (await context.IsGrantedAsync(PaymentsPermissions.Refunds.Manage)) { paymentManagementMenuItem.AddItem( - new ApplicationMenuItem("Refunds", l["Menu:Refunds"], "/EShop/Payments/Refunds/Refund?storeId=" + defaultStore) + new ApplicationMenuItem("EasyAbpEShopPaymentsRefund", l["Menu:Refund"], "/EShop/Payments/Refunds/Refund?storeId=" + defaultStore) ); } diff --git a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Categories/Category/Index.cshtml b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Categories/Category/Index.cshtml index 514182b2..8fcb03da 100644 --- a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Categories/Category/Index.cshtml +++ b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Categories/Category/Index.cshtml @@ -7,7 +7,7 @@ @{ PageLayout.Content.Title = L["Category"].Value; PageLayout.Content.BreadCrumb.Add(L["Menu:Category"].Value); - PageLayout.Content.MenuItemName = "Category"; + PageLayout.Content.MenuItemName = "EasyAbpEShopProductsCategory"; } @section scripts diff --git a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/ProductTypes/ProductType/Index.cshtml b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/ProductTypes/ProductType/Index.cshtml index dae018ba..2dbde511 100644 --- a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/ProductTypes/ProductType/Index.cshtml +++ b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/ProductTypes/ProductType/Index.cshtml @@ -7,7 +7,7 @@ @{ PageLayout.Content.Title = L["ProductType"].Value; PageLayout.Content.BreadCrumb.Add(L["Menu:ProductType"].Value); - PageLayout.Content.MenuItemName = "ProductType"; + PageLayout.Content.MenuItemName = "EasyAbpEShopProductsProductType"; } @section scripts diff --git a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Products/Product/Index.cshtml b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Products/Product/Index.cshtml index d95c897d..a1eb7b53 100644 --- a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Products/Product/Index.cshtml +++ b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Products/Product/Index.cshtml @@ -7,7 +7,7 @@ @{ PageLayout.Content.Title = L["Product"].Value; PageLayout.Content.BreadCrumb.Add(L["Menu:Product"].Value); - PageLayout.Content.MenuItemName = "Product"; + PageLayout.Content.MenuItemName = "EasyAbpEShopProductsProduct"; } @section scripts diff --git a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Products/ProductSku/Index.cshtml b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Products/ProductSku/Index.cshtml index e9621c10..fb508910 100644 --- a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Products/ProductSku/Index.cshtml +++ b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Products/ProductSku/Index.cshtml @@ -7,7 +7,7 @@ @{ PageLayout.Content.Title = L["ProductSku"].Value; PageLayout.Content.BreadCrumb.Add(L["Menu:Product"].Value); - PageLayout.Content.MenuItemName = "Product"; + PageLayout.Content.MenuItemName = "EasyAbpEShopProductsProduct"; } @section scripts diff --git a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/ProductsMenuContributor.cs b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/ProductsMenuContributor.cs index 5aa32910..ca3a8b66 100644 --- a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/ProductsMenuContributor.cs +++ b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/ProductsMenuContributor.cs @@ -30,19 +30,19 @@ namespace EasyAbp.EShop.Products.Web { var l = context.GetLocalizer(); //Add main menu items. - var productManagementMenuItem = new ApplicationMenuItem("ProductManagement", l["Menu:ProductManagement"]); + var productManagementMenuItem = new ApplicationMenuItem("EasyAbpEShopProducts", l["Menu:ProductManagement"]); if (await context.IsGrantedAsync(ProductsPermissions.ProductTypes.Default)) { productManagementMenuItem.AddItem( - new ApplicationMenuItem("ProductType", l["Menu:ProductType"], "/EShop/Products/ProductTypes/ProductType") + new ApplicationMenuItem("EasyAbpEShopProductsProductType", l["Menu:ProductType"], "/EShop/Products/ProductTypes/ProductType") ); } if (await context.IsGrantedAsync(ProductsPermissions.Categories.Default)) { productManagementMenuItem.AddItem( - new ApplicationMenuItem("Category", l["Menu:Category"], "/EShop/Products/Categories/Category") + new ApplicationMenuItem("EasyAbpEShopProductsCategory", l["Menu:Category"], "/EShop/Products/Categories/Category") ); } @@ -53,7 +53,7 @@ namespace EasyAbp.EShop.Products.Web var defaultStore = (await storeAppService.GetDefaultAsync())?.Id; productManagementMenuItem.AddItem( - new ApplicationMenuItem("Product", l["Menu:Product"], "/EShop/Products/Products/Product?storeId=" + defaultStore) + new ApplicationMenuItem("EasyAbpEShopProductsProduct", l["Menu:Product"], "/EShop/Products/Products/Product?storeId=" + defaultStore) ); } diff --git a/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/StoresMenuContributor.cs b/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/StoresMenuContributor.cs index b6d49de7..7a1ecd65 100644 --- a/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/StoresMenuContributor.cs +++ b/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/StoresMenuContributor.cs @@ -23,12 +23,12 @@ namespace EasyAbp.EShop.Stores.Web { var l = context.GetLocalizer(); //Add main menu items. - var storeManagementMenuItem = new ApplicationMenuItem("StoreManagement", l["Menu:StoreManagement"]); + var storeManagementMenuItem = new ApplicationMenuItem("EasyAbpEShopStores", l["Menu:StoreManagement"]); if (await context.IsGrantedAsync(StoresPermissions.Stores.Default)) { storeManagementMenuItem.AddItem( - new ApplicationMenuItem("Store", l["Menu:Store"], "/EShop/Stores/Stores/Store") + new ApplicationMenuItem("EasyAbpEShopStoresStore", l["Menu:Store"], "/EShop/Stores/Stores/Store") ); }