Fix: Läufigkeit-Detail zeigt 'Impfpass' als Titel (TABS-Alias auf BASE_TABS)

This commit is contained in:
rene 2026-04-17 09:35:18 +02:00
parent 76e57698a3
commit a10a6a3f06
2 changed files with 3 additions and 5 deletions

View file

@ -30,8 +30,6 @@ window.Page_health = (() => {
return tabs;
}
// Backwards-compat alias
const TABS = BASE_TABS;
// ----------------------------------------------------------
// LIFECYCLE
@ -771,7 +769,7 @@ window.Page_health = (() => {
// DETAIL-ANSICHT
// ----------------------------------------------------------
function _openDetail(entry) {
const tabInfo = TABS.find(t => t.key === entry.typ) || TABS[0];
const tabInfo = _getTabs().find(t => t.key === entry.typ) || BASE_TABS[0];
const fields = _detailFields(entry);
const body = `
@ -904,7 +902,7 @@ window.Page_health = (() => {
<button type="submit" form="health-form" class="btn btn-primary flex-1">${isEdit ? 'Speichern' : 'Erstellen'}</button>
`;
const tabInfo = TABS.find(tab => tab.key === t) || TABS[0];
const tabInfo = _getTabs().find(tab => tab.key === t) || BASE_TABS[0];
UI.modal.open({ title: `${tabInfo.icon} ${isEdit ? 'Bearbeiten' : tabInfo.label}`, body, footer });
const form = document.getElementById('health-form');