diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 9213d44..ec824cc 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '88'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '89'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const App = (() => { diff --git a/backend/static/js/pages/health.js b/backend/static/js/pages/health.js index 71275c9..701b1fb 100644 --- a/backend/static/js/pages/health.js +++ b/backend/static/js/pages/health.js @@ -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 = (() => { `; - 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');