Skip to content

Commit

Permalink
Move menu items to Administration
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 committed Aug 22, 2023
1 parent 063feda commit c4fc562
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ private async Task ConfigureMainMenu(MenuConfigurationContext context)
var l = context.GetLocalizer<NotificationServiceResource>();
//Add main menu items.

var notificationServiceMenuItem = new ApplicationMenuItem(NotificationServiceMenus.Prefix, l["Menu:NotificationService"]);
var notificationServiceMenuItem = new ApplicationMenuItem(NotificationServiceMenus.Prefix,
l["Menu:NotificationService"], icon: "fa fa-bell");

if (await context.IsGrantedAsync(NotificationServicePermissions.Notification.Default))
{
Expand All @@ -32,7 +33,7 @@ private async Task ConfigureMainMenu(MenuConfigurationContext context)

if (!notificationServiceMenuItem.Items.IsNullOrEmpty())
{
context.Menu.AddItem(notificationServiceMenuItem);
context.Menu.GetAdministration().AddItem(notificationServiceMenuItem);
}
}
}
Expand Down

0 comments on commit c4fc562

Please sign in to comment.