π 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: add nullable attribute to AppSelect components for improved category selection
Smaug6739f684837cf157
diff --git a/frontend/app/components/MarkdownEditor/Toolbar.vue b/frontend/app/components/MarkdownEditor/Toolbar.vueindex 50f7754c..cfa691ea 100644--- a/frontend/app/components/MarkdownEditor/Toolbar.vue+++ b/frontend/app/components/MarkdownEditor/Toolbar.vue@@ -61,7 +61,7 @@<div class="group-buttons"><VoiceRecognition :class="{ 'no-mobile': mobileSimplifiedView }" @transcription="handleTranscription" /></div>- <AppSelect v-model="localValue.parent_id" :items="categories" placeholder="Category" class="category-select" />+ <AppSelect v-model="localValue.parent_id" :items="categories" nullable placeholder="Category" class="category-select" /></div><!-- Right Section -->diff --git a/frontend/app/components/Node/Modals/CreateCategory.vue b/frontend/app/components/Node/Modals/CreateCategory.vueindex f6c27af3..928163bd 100644--- a/frontend/app/components/Node/Modals/CreateCategory.vue+++ b/frontend/app/components/Node/Modals/CreateCategory.vue@@ -5,7 +5,7 @@<input id="name" v-model="category.name" class="entry" type="text" required placeholder="Display name" /><label>Parent</label><div>- <AppSelect v-model="category.parent_id" nullable class="entry" :items="categoriesItem" placeholder="Select a category parent" />+ <AppSelect v-model="category.parent_id" class="entry" :items="categoriesItem" nullable placeholder="Select a category parent" /></div><div style="display: flex; flex-wrap: wrap"><div style="min-width: 200px; flex: 1; margin-right: 10px">diff --git a/frontend/app/pages/dashboard/categories/[id]/edit.vue b/frontend/app/pages/dashboard/categories/[id]/edit.vueindex 4c150299..f93dd6c4 100644--- a/frontend/app/pages/dashboard/categories/[id]/edit.vue+++ b/frontend/app/pages/dashboard/categories/[id]/edit.vue@@ -20,6 +20,7 @@v-model="category.parent_id":items="categoriesItem"placeholder="Select a category parent"+ nullable:disabled="i => i.id == category!.id || nodesStore.isDescendant(category!, i.id as string)"/></div>