π 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
Add document auto-save preference option in settings
Axel MINART553da8b4c93f
diff --git a/frontend/app/composables/Preferences.ts b/frontend/app/composables/Preferences.tsindex 261f4bf9..ea61a64d 100644--- a/frontend/app/composables/Preferences.ts+++ b/frontend/app/composables/Preferences.ts@@ -10,6 +10,7 @@ export const DEFAULT_PREFERENCES = {primaryColor: -2 as number, // -2 default primary; -1 unset; >= 0 app color indexdocSize: 1 as number, // 0 = small, 1 = largetheme: 'alexandrie' as string,+ documentAutoSave: true as boolean, // Enable automatic saving of documentssidebarItems: {manageCategories: true as boolean,cdn: true as boolean,diff --git a/frontend/app/pages/dashboard/settings/_views/preferences.vue b/frontend/app/pages/dashboard/settings/_views/preferences.vueindex 7c35ccba..6332b2c0 100644--- a/frontend/app/pages/dashboard/settings/_views/preferences.vue+++ b/frontend/app/pages/dashboard/settings/_views/preferences.vue@@ -103,6 +103,7 @@ const options = ref<{ label: string; options: Option[] }[]>([options: [{ label: 'Enable Print Mode', type: 'toggle', key: 'printMode', value: Boolean(preferencesStore.get('printMode')) },{ label: 'Hide Table of Content', type: 'toggle', key: 'hideTOC', value: Boolean(preferencesStore.get('hideTOC')) },+ { label: 'Enable Document Auto-save', type: 'toggle', key: 'documentAutoSave', value: Boolean(preferencesStore.get('documentAutoSave')) },{label: 'Document size',type: 'radio',