UX: Breeder-Profil Back-FAB unten rechts + destroy() Hook in navigate() (SW by-v898)

This commit is contained in:
rene 2026-05-13 18:19:16 +02:00
parent 822af64704
commit c15f1b10d0
5 changed files with 34 additions and 17 deletions

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
const APP_VER = '897'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VER = '898'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app';
// Cache-Bust-Parameter nach Update-Reload sofort entfernen
@ -134,8 +134,15 @@ const App = (() => {
}
if (window.Worlds?._visible) window.Worlds.hide();
// destroy() der aktuellen Seite aufrufen (z.B. FABs aufräumen)
const activePage = document.querySelector('.page.active');
if (activePage) {
const activeId = activePage.id?.replace('page-', '');
if (activeId && pages[activeId]?.module?.destroy) pages[activeId].module.destroy();
}
// Aktive Seite ausblenden
document.querySelector('.page.active')?.classList.remove('active');
activePage?.classList.remove('active');
document.querySelectorAll('.nav-item.active, .sidebar-item.active')
.forEach(el => el.classList.remove('active'));