From 85d1a5c4f014cc90a226c12c4a441c714081a9d9 Mon Sep 17 00:00:00 2001 From: dohertj2 Date: Sun, 22 Feb 2026 05:37:54 -0500 Subject: [PATCH] Fix popup script indentation and alarm table row colors - Add leading tab to flowRatePopup onClick script to fix SyntaxError - Add rowStyles to AlarmStatusTable: grey (#BDBDBD) for Low priority alarms to visually distinguish from High priority (default red) --- .../views/Home/view.json | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/projects/watermeter/com.inductiveautomation.perspective/views/Home/view.json b/projects/watermeter/com.inductiveautomation.perspective/views/Home/view.json index b27bca7..36e3b96 100644 --- a/projects/watermeter/com.inductiveautomation.perspective/views/Home/view.json +++ b/projects/watermeter/com.inductiveautomation.perspective/views/Home/view.json @@ -1296,7 +1296,7 @@ "dom": { "onClick": { "config": { - "script": "system.perspective.openPopup('flowRatePopup', 'FlowRatePopup', params={}, title='Flow Rate History', modal=True)" + "script": "\tsystem.perspective.openPopup('flowRatePopup', 'FlowRatePopup', params={}, title='Flow Rate History', modal=True)" }, "scope": "G", "type": "script" @@ -1630,6 +1630,29 @@ "source": "*WaterMeter*" } } + }, + "rowStyles": { + "activeUnacked": { + "priorities": { + "low": { + "backgroundColor": "#BDBDBD" + } + } + }, + "activeAcked": { + "priorities": { + "low": { + "backgroundColor": "#BDBDBD" + } + } + }, + "clearUnacked": { + "priorities": { + "low": { + "backgroundColor": "#BDBDBD" + } + } + } } }, "type": "ia.display.alarmstatustable" @@ -1653,4 +1676,4 @@ }, "type": "ia.container.flex" } -} \ No newline at end of file +}