Files
Servers/MoonlightServers.Frontend/Implementations/SidebarImplementation.cs

31 lines
867 B
C#

using Moonlight.Client.Interfaces;
using Moonlight.Client.Models;
namespace MoonlightServers.Frontend.Implementations;
public class SidebarImplementation : ISidebarItemProvider
{
public void ModifySidebar(List<SidebarItem> items)
{
items.AddRange(
[
new SidebarItem()
{
Name = "Servers",
Path = "/servers",
Icon = "icon-server",
Priority = 4
},
new SidebarItem()
{
Name = "Servers",
Path = "/admin/servers",
Icon = "icon-server",
Group = "Admin",
Policy = "permissions:admin.servers.overview",
Priority = 4
}
]
);
}
}