Skip to content

Commit

Permalink
Use panelId from topology for ssd
Browse files Browse the repository at this point in the history
  • Loading branch information
hvangeffen authored and wkramer committed Sep 24, 2024
1 parent ab1ffb6 commit 107cc1f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/views/TopologyDisplayView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -440,17 +440,16 @@ function displayTabsForNode(leafNode: TopologyNode, parentNodeId?: string) {
icon: 'mdi-file-document',
})
}
// TODO: Use topology setting
if (true) {
if (leafNode.scadaPanelId !== undefined) {
_displayTabs.push({
type: 'schematic-status-display',
id: ssdTabId,
title: 'SSD',
title: 'Schematic',
to: {
name: 'TopologySchematicStatusDisplay',
params: {
nodeId: parentNodeId ? [parentNodeId, leafNode.id] : leafNode.id,
panelId: 'coastal_flooding',
panelId: leafNode.scadaPanelId,
},
},
icon: 'mdi-view-dashboard',
Expand Down

0 comments on commit 107cc1f

Please sign in to comment.