mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00

This removes the ability to edit multiple dashboards in favor of a simplified way for users to edit the default dashboard.
14 lines
482 B
C#
14 lines
482 B
C#
using Orchard.UI.Navigation;
|
|
|
|
namespace Orchard.Dashboards {
|
|
public class AdminMenu : Component, INavigationProvider {
|
|
|
|
public string MenuName { get { return "admin"; } }
|
|
|
|
public void GetNavigation(NavigationBuilder builder) {
|
|
builder.Add(T("Settings"), settings => settings
|
|
.Add(T("Dashboard"), "16", dashboard => dashboard
|
|
.Action("Edit", "Dashboard", new { area = "Orchard.Dashboards" })));
|
|
}
|
|
}
|
|
} |