diff --git a/src/static/js/app.js b/src/static/js/app.js index a462a3b..4595db0 100644 --- a/src/static/js/app.js +++ b/src/static/js/app.js @@ -787,6 +787,16 @@ const App = { typeBadge.className = 'incident-type-badge ' + (incident.type === 'research' ? 'type-research' : 'type-adhoc'); typeBadge.textContent = incident.type === 'research' ? 'Analyse' : 'Live'; + // Kachel-Label: 'Recherchebericht' fuer Recherche-Lagen, 'Lagebild' fuer Live-Monitoring + const _lbLabel = incident.type === 'research' ? 'Recherchebericht' : 'Lagebild'; + const _cardTitle = document.querySelector('[gs-id="lagebild"] .card-title'); + if (_cardTitle) { _cardTitle.textContent = _lbLabel; _cardTitle.setAttribute("onclick", "openContentModal('" + _lbLabel + "', 'summary-content')"); } + const _toggleBtn = document.querySelector('.layout-toggle-btn[data-tile="lagebild"]'); + if (_toggleBtn) _toggleBtn.textContent = _lbLabel; + const _pdfLabel = document.querySelector('#pdf-export-tiles input[value="lagebild"] + span'); + if (_pdfLabel) _pdfLabel.textContent = _lbLabel; + { const _nt = document.querySelector("#inc-notify-summary"); if (_nt) { const _ns = _nt.closest("label")?.querySelector(".toggle-text"); if (_ns) _ns.textContent = "Neues " + _lbLabel; } } + // Archiv-Button Text this._updateArchiveButton(incident.status); @@ -2191,7 +2201,7 @@ const App = { summaryHtml = summaryHtml.replace(/]*class="citation"[^>]*>(\[[^\]]+\])<\/a>/g, '$2'); sections += '
' - + '

Lagebild

' + + '

' + (this._currentIncidentType === 'research' ? 'Recherchebericht' : 'Lagebild') + '

' + (timestamp ? '

' + esc(timestamp) + '

' : '') + '
' + summaryHtml + '
' + '
';