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)
This commit is contained in:
dohertj2
2026-02-22 05:37:54 -05:00
parent 11b84c27d7
commit 85d1a5c4f0

View File

@@ -1296,7 +1296,7 @@
"dom": { "dom": {
"onClick": { "onClick": {
"config": { "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", "scope": "G",
"type": "script" "type": "script"
@@ -1630,6 +1630,29 @@
"source": "*WaterMeter*" "source": "*WaterMeter*"
} }
} }
},
"rowStyles": {
"activeUnacked": {
"priorities": {
"low": {
"backgroundColor": "#BDBDBD"
}
}
},
"activeAcked": {
"priorities": {
"low": {
"backgroundColor": "#BDBDBD"
}
}
},
"clearUnacked": {
"priorities": {
"low": {
"backgroundColor": "#BDBDBD"
}
}
}
} }
}, },
"type": "ia.display.alarmstatustable" "type": "ia.display.alarmstatustable"
@@ -1653,4 +1676,4 @@
}, },
"type": "ia.container.flex" "type": "ia.container.flex"
} }
} }