diff --git a/server/src/ledgrab/static/js/features/color-strips/notification.ts b/server/src/ledgrab/static/js/features/color-strips/notification.ts index fad8719..66e157b 100644 --- a/server/src/ledgrab/static/js/features/color-strips/notification.ts +++ b/server/src/ledgrab/static/js/features/color-strips/notification.ts @@ -233,15 +233,14 @@ function _overridesRenderList() { // Wire EntitySelects for sound dropdowns list.querySelectorAll('.notif-override-sound').forEach(sel => { - const items = _getSoundAssetItems(); - if (items.length > 0) { - const es = new EntitySelect({ - target: sel, - getItems: () => _getSoundAssetItems(), - placeholder: t('color_strip.notification.sound.search') || 'Search sounds…', - }); - _overrideEntitySelects.push(es); - } + const es = new EntitySelect({ + target: sel, + getItems: () => _getSoundAssetItems(), + placeholder: t('color_strip.notification.sound.search') || 'Search sounds…', + allowNone: true, + noneLabel: t('color_strip.notification.sound.none'), + }); + _overrideEntitySelects.push(es); }); } @@ -300,14 +299,13 @@ export function ensureNotifSoundEntitySelect() { if (!sel) return; _populateSoundOptions(sel); if (_notifSoundEntitySelect) _notifSoundEntitySelect.destroy(); - const items = _getSoundAssetItems(); - if (items.length > 0) { - _notifSoundEntitySelect = new EntitySelect({ - target: sel, - getItems: () => _getSoundAssetItems(), - placeholder: t('color_strip.notification.sound.search') || 'Search sounds…', - }); - } + _notifSoundEntitySelect = new EntitySelect({ + target: sel, + getItems: () => _getSoundAssetItems(), + placeholder: t('color_strip.notification.sound.search') || 'Search sounds…', + allowNone: true, + noneLabel: t('color_strip.notification.sound.none'), + }); } /* ── Test notification ────────────────────────────────────────── */