Use primary color for running node icons and fix add device modal dirty check
- Running graph nodes show entity icon in --primary-color instead of --text-muted - Fix AddDeviceModal always showing dirty: serialize zones array with JSON.stringify for proper strict equality comparison (matching DeviceSettingsModal pattern) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -305,6 +305,11 @@
|
|||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.graph-node.running .graph-node-icon {
|
||||||
|
stroke: var(--primary-color);
|
||||||
|
opacity: 0.85;
|
||||||
|
}
|
||||||
|
|
||||||
/* ── Running indicator (animated gradient border) ── */
|
/* ── Running indicator (animated gradient border) ── */
|
||||||
|
|
||||||
.graph-node.running .graph-node-body {
|
.graph-node.running .graph-node-body {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class AddDeviceModal extends Modal {
|
|||||||
baudRate: document.getElementById('device-baud-rate').value,
|
baudRate: document.getElementById('device-baud-rate').value,
|
||||||
ledType: document.getElementById('device-led-type')?.value || 'rgb',
|
ledType: document.getElementById('device-led-type')?.value || 'rgb',
|
||||||
sendLatency: document.getElementById('device-send-latency')?.value || '0',
|
sendLatency: document.getElementById('device-send-latency')?.value || '0',
|
||||||
zones: _getCheckedZones('device-zone-list'),
|
zones: JSON.stringify(_getCheckedZones('device-zone-list')),
|
||||||
zoneMode: _getZoneMode(),
|
zoneMode: _getZoneMode(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user