+
+
+
+
+
+
+
+
+
+
diff --git a/src/lib/topology/displayTabs.ts b/src/lib/topology/displayTabs.ts
index ec75faf2..c0cf4d58 100644
--- a/src/lib/topology/displayTabs.ts
+++ b/src/lib/topology/displayTabs.ts
@@ -17,6 +17,7 @@ export interface DisplayTab {
| 'data-download'
| 'schematic-status-display'
| 'system-monitor'
+ | 'dashboard'
id: string
title: string
href?: string
@@ -75,6 +76,14 @@ const displayTabs: DisplayTab[] = [
icon: 'mdi-view-dashboard',
active: false,
},
+ {
+ type: 'dashboard',
+ id: 'dashboard',
+ title: 'Dashboard',
+ to: { name: 'TopologyDashboard' },
+ icon: 'mdi-view-dashboard',
+ active: false,
+ },
]
export function displayTabsForNode(node: TopologyNode, parentNodeId?: string) {
@@ -110,6 +119,10 @@ export function displayTabsForNode(node: TopologyNode, parentNodeId?: string) {
tab.active = nodeHasSystemMonitor(node)
tab.to.params = { ...params }
break
+ case 'dashboard':
+ tab.active = true
+ tab.to.params = { ...params }
+ break
}
}
return displayTabs.filter((tab) => tab.active)
diff --git a/src/router/index.ts b/src/router/index.ts
index 8bffc8eb..186bb357 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -35,6 +35,7 @@ const TimeSeriesDisplay = () =>
import('../components/timeseries/TimeSeriesDisplay.vue')
const HtmlDisplayView = () => import('../views/HtmlDisplayView.vue')
const ReportsDisplayView = () => import('../views/ReportsDisplayView.vue')
+const DashboardView = () => import('../views/DashboardView.vue')
const Empty = () => import('../views/Empty.vue')
const routesBase: Readonly