Browse Source

add node page

master
yangxiaodong 7 years ago
parent
commit
c63dc68297
2 changed files with 6 additions and 5 deletions
  1. +4
    -3
      src/DotNetCore.CAP/Dashboard/DashboardRoutes.cs
  2. +2
    -2
      src/DotNetCore.CAP/Dashboard/NavigationMenu.cs

+ 4
- 3
src/DotNetCore.CAP/Dashboard/DashboardRoutes.cs View File

@@ -102,10 +102,11 @@ namespace DotNetCore.CAP.Dashboard
Routes.AddRazorPage(
"/received/(?<StatusName>.+)",
x => new ReceivedPage(x.Groups["StatusName"].Value));
Routes.AddRazorPage("/subscribers", x => new SubscriberPage());

//Routes.AddRazorPage("/servers", x => new ServersPage());
//Routes.AddRazorPage("/retries", x => new RetriesPage());
Routes.AddRazorPage("/subscribers", x => new SubscriberPage());

Routes.AddRazorPage("/nodes", x => new NodePage());

#endregion Razor pages and commands
}


+ 2
- 2
src/DotNetCore.CAP/Dashboard/NavigationMenu.cs View File

@@ -36,9 +36,9 @@ namespace DotNetCore.CAP.Dashboard
Metric = DashboardMetrics.SubscriberCount
});

Items.Add(page => new MenuItem(Strings.NavigationMenu_Servers, page.Url.To("/servers"))
Items.Add(page => new MenuItem(Strings.NavigationMenu_Servers, page.Url.To("/nodes"))
{
Active = page.RequestPath.Equals("/servers"),
Active = page.RequestPath.Equals("/nodes"),
Metric = DashboardMetrics.ServerCount
});
}


Loading…
Cancel
Save