fix(i18n): Notify-Summary-Toggle wird beim Lage-Edit ueberschrieben
app.js:1037-1043 setzte den Text der notify-summary-Checkbox dynamisch auf Neues Lagebild / Neuer Recherchebericht und damit das data-i18n- Attribut zurueck. Jetzt ueber T() mit Forschungs-/Lagebild-Varianten. Neuer Key modal.notify.summary_research.
Dieser Commit ist enthalten in:
@@ -1034,13 +1034,26 @@ const App = {
|
||||
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 _tI18n = (k, fb) => (typeof T === 'function') ? T(k, fb) : fb;
|
||||
const _lbLabel = incident.type === 'research'
|
||||
? _tI18n('tab.summary_report', 'Recherchebericht')
|
||||
: _tI18n('card.summary', 'Lagebild');
|
||||
const _cardTitle = document.querySelector('#panel-lagebild .card-title');
|
||||
if (_cardTitle) _cardTitle.textContent = _lbLabel;
|
||||
if (typeof LayoutManager !== 'undefined' && typeof LayoutManager.applyTypeLabels === 'function') {
|
||||
LayoutManager.applyTypeLabels(incident.type);
|
||||
}
|
||||
{ const _nt = document.querySelector("#inc-notify-summary"); if (_nt) { const _ns = _nt.closest("label")?.querySelector(".toggle-text"); if (_ns) _ns.textContent = "Neues " + _lbLabel; } }
|
||||
{
|
||||
const _nt = document.querySelector("#inc-notify-summary");
|
||||
if (_nt) {
|
||||
const _ns = _nt.closest("label")?.querySelector(".toggle-text");
|
||||
if (_ns) {
|
||||
_ns.textContent = incident.type === 'research'
|
||||
? _tI18n('modal.notify.summary_research', 'Neuer Recherchebericht')
|
||||
: _tI18n('modal.notify.summary', 'Neues Lagebild');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Archiv-Button Text
|
||||
this._updateArchiveButton(incident.status);
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren