UI: Fixed HP heat pump value box backround on disabled

This commit is contained in:
Artem Dzhereleiko 2024-12-02 12:48:14 +02:00
parent 8bb08ebaca
commit 4354e52c67

View File

@ -57,7 +57,7 @@
}, },
{ {
"tag": "value-box-background", "tag": "value-box-background",
"stateRenderFunction": "if (ctx.values.running) {\n var color = ctx.properties.valueBoxBackground;\n element.attr({fill: color});\n}\n", "stateRenderFunction": "if (ctx.values.running) {\n var color = ctx.properties.valueBoxBackground;\n element.attr({fill: color});\n} else {\n var color = ctx.properties.stoppedColor;\n element.attr({fill: color});\n}\n",
"actions": null "actions": null
}, },
{ {

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB