Hide immutable type field in color strip source edit modal

Type is set at creation and cannot be changed, so hide the selector
when editing (same pattern already used in value source editor).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-26 16:45:51 +03:00
parent 8fa89903e9
commit dac0c2d418
2 changed files with 4 additions and 1 deletions

View File

@@ -822,6 +822,9 @@ export async function showCSSEditor(cssId = null, cloneData = null) {
document.getElementById('css-editor-led-count').value = css.led_count ?? 0;
};
// Hide type selector in edit mode (type is immutable)
document.getElementById('css-editor-type-group').style.display = cssId ? 'none' : '';
if (cssId) {
const resp = await fetchWithAuth(`/color-strip-sources/${cssId}`);
if (!resp.ok) throw new Error('Failed to load color strip source');