Anpassung Menü

This commit is contained in:
2026-08-09 18:44:21 +02:00
parent b80e2d5a6c
commit 8ffbda875e
13 changed files with 365 additions and 58 deletions

View File

@@ -21,6 +21,7 @@ import { adminView } from "./views/admin.js";
import { settingsView } from "./views/settings.js";
import { welcomeView } from "./views/welcome.js";
import { manageView } from "./views/manage.js";
import { closeMenu } from "./appbar.js";
import * as db from "./db.js";
import { installTriggers, stopWatching } from "./sync.js";
import { publicView } from "./views/public.js";
@@ -60,6 +61,8 @@ function currentRoute() {
/** Beim Verlassen der Detailansicht den Ereigniskanal schließen -
* sonst bleibt pro besuchter Liste eine offene Verbindung stehen. */
function navigate(hash) {
// Sonst bliebe ein offenes Menü über den Wechsel hinweg stehen.
closeMenu();
stopWatching();
if (location.hash === hash) {
route();