From 77797f6027db0e06b7a489532da413f53c68ddf8 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Sun, 3 May 2026 14:18:17 +0000 Subject: [PATCH] Refresh-Modal: Titel je nach Status (queued/cancelling/laeuft) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bisher hing der Titel nur an state.isFirst -> stand auch "Aktualisierung laeuft" wenn die Lage tatsaechlich noch in der Queue wartete. Jetzt: - queued -> "In Warteschlange" (mit Position #N falls vorhanden) - cancelling -> "Wird abgebrochen…" - isFirst -> "Erste Recherche laeuft" - sonst -> "Aktualisierung laeuft" --- src/static/js/components.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/static/js/components.js b/src/static/js/components.js index 89762d0..b32dce0 100644 --- a/src/static/js/components.js +++ b/src/static/js/components.js @@ -354,9 +354,22 @@ const UI = { const minBtn = document.getElementById('progress-popup-minimize'); if (minBtn) minBtn.style.display = state.isFirst ? 'none' : ''; - // Title + // Title - haengt von Status ab (queued = wartet, cancelling = bricht ab, sonst laeuft) const titleEl = document.getElementById('progress-popup-title'); - if (titleEl) titleEl.textContent = state.isFirst ? 'Erste Recherche l\u00e4uft' : 'Aktualisierung l\u00e4uft'; + if (titleEl) { + let title; + if (status === 'queued') { + const pos = (state && state._queuePos) ? ' (#' + state._queuePos + ')' : ''; + title = 'In Warteschlange' + pos; + } else if (status === 'cancelling') { + title = 'Wird abgebrochen\u2026'; + } else if (state.isFirst) { + title = 'Erste Recherche l\u00e4uft'; + } else { + title = 'Aktualisierung l\u00e4uft'; + } + titleEl.textContent = title; + } // Multi-pass info const passEl = document.getElementById('progress-popup-pass');