Kachel-Label dynamisch: Recherchebericht bei Recherche-Lagen, Lagebild bei Live-Monitoring

Betrifft: Card-Title, Layout-Toggle, PDF-Export, Benachrichtigungs-Toggle.
Bei Typ research wird ueberall Recherchebericht angezeigt statt Lagebild.
Dieser Commit ist enthalten in:
Claude Dev
2026-03-24 07:29:14 +01:00
Ursprung f60edb42f7
Commit c7d7bbbb18

Datei anzeigen

@@ -787,6 +787,16 @@ const App = {
typeBadge.className = 'incident-type-badge ' + (incident.type === 'research' ? 'type-research' : 'type-adhoc'); typeBadge.className = 'incident-type-badge ' + (incident.type === 'research' ? 'type-research' : 'type-adhoc');
typeBadge.textContent = incident.type === 'research' ? 'Analyse' : 'Live'; 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 // Archiv-Button Text
this._updateArchiveButton(incident.status); this._updateArchiveButton(incident.status);
@@ -2191,7 +2201,7 @@ const App = {
summaryHtml = summaryHtml.replace(/<a\s+href="([^"]*)"[^>]*class="citation"[^>]*>(\[[^\]]+\])<\/a>/g, summaryHtml = summaryHtml.replace(/<a\s+href="([^"]*)"[^>]*class="citation"[^>]*>(\[[^\]]+\])<\/a>/g,
'<a href="$1" class="citation">$2</a>'); '<a href="$1" class="citation">$2</a>');
sections += '<div class="pdf-section">' sections += '<div class="pdf-section">'
+ '<h2>Lagebild</h2>' + '<h2>' + (this._currentIncidentType === 'research' ? 'Recherchebericht' : 'Lagebild') + '</h2>'
+ (timestamp ? '<p class="pdf-meta">' + esc(timestamp) + '</p>' : '') + (timestamp ? '<p class="pdf-meta">' + esc(timestamp) + '</p>' : '')
+ '<div class="pdf-content">' + summaryHtml + '</div>' + '<div class="pdf-content">' + summaryHtml + '</div>'
+ '</div>'; + '</div>';