📚 The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Fix translations
Smaug6739f59c068657b7
diff --git a/frontend/app/composables/collapseStates.ts b/frontend/app/composables/collapseStates.tsindex 66d7a91d..791ec5db 100644--- a/frontend/app/composables/collapseStates.ts+++ b/frontend/app/composables/collapseStates.ts@@ -2,7 +2,7 @@ import { reactive } from 'vue';const STORAGE_KEY = 'collapse-states';-// Chargement initial+// Initial loadfunction loadCollapseStates(): Record<string, boolean> {try {const raw = localStorage.getItem(STORAGE_KEY);@@ -12,17 +12,15 @@ function loadCollapseStates(): Record<string, boolean> {}}-// État réactif global+// Global reactive stateconst states = reactive<Record<string, boolean>>(loadCollapseStates());function saveStates() {localStorage.setItem(STORAGE_KEY, JSON.stringify(states));}-// --- API publique ----export function getCollapseState(id: string): boolean {- if (!(id in states)) states[id] = true; // par défaut: open+ if (!(id in states)) states[id] = true; // default: expandedreturn states[id] ?? true;}