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.
36 lines
916 B
36 lines
916 B
using Volo.Abp.UI.Navigation;
|
|
|
|
namespace AntDesignUIApp;
|
|
|
|
public class AntDesignUiAppMenuContributor : IMenuContributor
|
|
{
|
|
public Task ConfigureMenuAsync(MenuConfigurationContext context)
|
|
{
|
|
if (context.Menu.Name == StandardMenus.Main)
|
|
{
|
|
context.Menu.Items.Insert(
|
|
0,
|
|
new ApplicationMenuItem(
|
|
"Home",
|
|
"Home",
|
|
"/",
|
|
icon: "home"
|
|
)
|
|
);
|
|
|
|
var admin = new ApplicationMenuItem("Admin", "Admin");
|
|
|
|
admin.AddItem(new ApplicationMenuItem("Users",
|
|
"Users",
|
|
"/Users"));
|
|
|
|
admin.AddItem(new ApplicationMenuItem("Roles",
|
|
"Roles",
|
|
"/Roles"));
|
|
|
|
context.Menu.AddItem(admin);
|
|
}
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
|