Fix: Läufigkeit-Detail zeigt 'Impfpass' als Titel (TABS-Alias auf BASE_TABS)
This commit is contained in:
parent
76e57698a3
commit
a10a6a3f06
2 changed files with 3 additions and 5 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
Router, State-Management, Navigation, Initialisierung.
|
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 = (() => {
|
const App = (() => {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,6 @@ window.Page_health = (() => {
|
||||||
return tabs;
|
return tabs;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Backwards-compat alias
|
|
||||||
const TABS = BASE_TABS;
|
|
||||||
|
|
||||||
// ----------------------------------------------------------
|
// ----------------------------------------------------------
|
||||||
// LIFECYCLE
|
// LIFECYCLE
|
||||||
|
|
@ -771,7 +769,7 @@ window.Page_health = (() => {
|
||||||
// DETAIL-ANSICHT
|
// DETAIL-ANSICHT
|
||||||
// ----------------------------------------------------------
|
// ----------------------------------------------------------
|
||||||
function _openDetail(entry) {
|
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 fields = _detailFields(entry);
|
||||||
|
|
||||||
const body = `
|
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>
|
<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 });
|
UI.modal.open({ title: `${tabInfo.icon} ${isEdit ? 'Bearbeiten' : tabInfo.label}`, body, footer });
|
||||||
|
|
||||||
const form = document.getElementById('health-form');
|
const form = document.getElementById('health-form');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue