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:
2026-03-13 16:05:37 +03:00
parent 7902d2e1f9
commit 18c886cbc5
2 changed files with 6 additions and 1 deletions

View File

@@ -305,6 +305,11 @@
opacity: 0.5;
}
.graph-node.running .graph-node-icon {
stroke: var(--primary-color);
opacity: 0.85;
}
/* ── Running indicator (animated gradient border) ── */
.graph-node.running .graph-node-body {

View File

@@ -28,7 +28,7 @@ class AddDeviceModal extends Modal {
baudRate: document.getElementById('device-baud-rate').value,
ledType: document.getElementById('device-led-type')?.value || 'rgb',
sendLatency: document.getElementById('device-send-latency')?.value || '0',
zones: _getCheckedZones('device-zone-list'),
zones: JSON.stringify(_getCheckedZones('device-zone-list')),
zoneMode: _getZoneMode(),
};
}