public ActionResult Dashboard(string filter) { var vd = new DashboardModel { Nodes = DashboardData.AllNodes.Where(n => !Current.Settings.Dashboard.ExcludePatternRegex.IsMatch(n.Name)).ToList(), ErrorMessages = DashboardData.ProviderExceptions, Filter = filter }; return View(Current.IsAjaxRequest ? "Dashboard.Table" : "Dashboard", vd); }
public ActionResult Dashboard(string filter, bool ajax = false) { SetMainTab(MainTab.Dashboard); var vd = new DashboardModel { Nodes = DashboardData.AllNodes.Where(n => !Current.Settings.Dashboard.ExcludePatternRegex.IsMatch(n.Name)).ToList(), ErrorMessages = DashboardData.ProviderExceptions, Filter = filter }; return View(ajax ? "Dashboard.Table" : "Dashboard", vd); }