Skip to content

Commit 3869190

Browse files
CopilotTimUx
andcommitted
Fix note handling consistency in fetchState
Co-authored-by: TimUx <7571934+TimUx@users.noreply.github.com>
1 parent 1e8dddf commit 3869190

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ <h3 class="social-footer-title">Unsere Kanäle:</h3>
276276

277277
markStatus(isRunning ? 'running' : '', isRunning ? 'Show läuft gerade.' : 'Bereit.');
278278
setStatusDetails(modeName, playlistLabel, currentSequence);
279-
note.textContent = data.note || '';
280279
updateCountdown(data.nextShow, data.scheduledShowsEnabled !== false);
281280

282281
const lockReason = applyLocks(data.locks);
@@ -309,22 +308,25 @@ <h3 class="social-footer-title">Unsere Kanäle:</h3>
309308
outsideWindowBanner.classList.remove('hidden');
310309
quietBanner.classList.add('hidden');
311310
showRunningBanner.classList.add('hidden');
311+
note.textContent = data.note || '';
312312
} else if (isQuiet && showPeriod) {
313313
quietBanner.textContent = `Ruhezeit ${showPeriod.endTime}${showPeriod.startTime} – keine Wiedergabe möglich.`;
314314
quietBanner.classList.remove('hidden');
315315
outsideWindowBanner.classList.add('hidden');
316316
showRunningBanner.classList.add('hidden');
317+
note.textContent = data.note || '';
317318
} else if (lockReason && !isQuiet && !isOutsideWindow) {
318319
// Show the lock reason in the banner instead of the note section
319320
showRunningBanner.textContent = lockReason;
320321
showRunningBanner.classList.remove('hidden');
321322
quietBanner.classList.add('hidden');
322323
outsideWindowBanner.classList.add('hidden');
323-
note.textContent = '';
324+
note.textContent = data.note || '';
324325
} else {
325326
quietBanner.classList.add('hidden');
326327
outsideWindowBanner.classList.add('hidden');
327328
showRunningBanner.classList.add('hidden');
329+
note.textContent = data.note || '';
328330
}
329331

330332
renderQueue(data.currentRequest, data.queue || []);

0 commit comments

Comments
 (0)