From 9518e10bcbc8af7959870e47a7ac6ae0e29ef3f2 Mon Sep 17 00:00:00 2001 From: enisn Date: Wed, 22 Dec 2021 15:58:38 +0300 Subject: [PATCH] Reorder toolbar items --- .../Menus/EShopOnAbpPublicWebToolbarContributor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/public-web/src/EShopOnAbp.PublicWeb/Menus/EShopOnAbpPublicWebToolbarContributor.cs b/apps/public-web/src/EShopOnAbp.PublicWeb/Menus/EShopOnAbpPublicWebToolbarContributor.cs index 03342e66..21a9f84e 100644 --- a/apps/public-web/src/EShopOnAbp.PublicWeb/Menus/EShopOnAbpPublicWebToolbarContributor.cs +++ b/apps/public-web/src/EShopOnAbp.PublicWeb/Menus/EShopOnAbpPublicWebToolbarContributor.cs @@ -16,12 +16,12 @@ namespace EShopOnAbp.PublicWeb.Menus return Task.CompletedTask; } + context.Toolbar.Items.Add(new ToolbarItem(typeof(CartWidgetViewComponent))); + if (!context.ServiceProvider.GetRequiredService().IsAuthenticated) { context.Toolbar.Items.Add(new ToolbarItem(typeof(LoginLinkViewComponent))); } - - context.Toolbar.Items.Add(new ToolbarItem(typeof(CartWidgetViewComponent))); return Task.CompletedTask; }