mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
664 B
22 lines
664 B
using System.Threading.Tasks;
|
|
using Volo.Abp.Account.Localization;
|
|
using Volo.Abp.UI.Navigation;
|
|
|
|
namespace Volo.Abp.Account.Blazor;
|
|
|
|
public class AbpAccountBlazorUserMenuContributor : IMenuContributor
|
|
{
|
|
public Task ConfigureMenuAsync(MenuConfigurationContext context)
|
|
{
|
|
if (context.Menu.Name != StandardMenus.User)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
var accountResource = context.GetLocalizer<AccountResource>();
|
|
|
|
context.Menu.AddItem(new ApplicationMenuItem("Account.Manage", accountResource["MyAccount"], url: "account/manage-profile", icon: "fa fa-cog"));
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
|