Browse Source

Reorder toolbar items

pull/43/head
enisn 5 years ago
parent
commit
9518e10bcb
  1. 4
      apps/public-web/src/EShopOnAbp.PublicWeb/Menus/EShopOnAbpPublicWebToolbarContributor.cs

4
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<ICurrentUser>().IsAuthenticated)
{
context.Toolbar.Items.Add(new ToolbarItem(typeof(LoginLinkViewComponent)));
}
context.Toolbar.Items.Add(new ToolbarItem(typeof(CartWidgetViewComponent)));
return Task.CompletedTask;
}

Loading…
Cancel
Save