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.
35 lines
1.1 KiB
35 lines
1.1 KiB
using System.Threading.Tasks;
|
|
using Volo.Abp.Ui.Navigation;
|
|
|
|
namespace AbpDesk.Web.Mvc.Navigation
|
|
{
|
|
public class MainMenuContributor : IMenuContributor
|
|
{
|
|
public Task ConfigureMenuAsync(MenuConfigurationContext context)
|
|
{
|
|
if (context.Menu.Name != StandardMenus.Main)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
context.Menu.DisplayName = "Main Menu";
|
|
|
|
context.Menu.Items.Insert(0, new ApplicationMenuItem("Home", "Home", url: "/"));
|
|
|
|
context.Menu
|
|
.AddItem(
|
|
new ApplicationMenuItem("TicketManagement", "Ticket Management")
|
|
.AddItem(
|
|
new ApplicationMenuItem("TicketManagement.Tickets", "Tickets", url: "/Tickets")
|
|
)
|
|
);
|
|
|
|
//Disabled blog module. This should be inside the module!
|
|
//.AddItem(
|
|
// new ApplicationMenuItem("Blog", "Blog", url: "/Blog/Posts")
|
|
//);
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
}
|
|
|