Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Update Navbar.vue

louloudev59fff76a5fcb5a
diff --git a/frontend/app/components/Navbar.vue b/frontend/app/components/Navbar.vue
index 0cc0346f..de2d2040 100644
--- a/frontend/app/components/Navbar.vue
+++ b/frontend/app/components/Navbar.vue
@@ -22,8 +22,6 @@
<ThemeToggle style="margin-left: auto" aria-label="toggle theme" />
</header>
- <!-- Reference to global search component -->
- <GlobalSearch ref="globalSearchRef" />
</template>
<style lang="scss" scoped>
@@ -95,14 +93,9 @@ button {
}
</style>
<script lang="ts" setup>
-import GlobalSearch from './GlobalSearch.vue'
-
const { toggleSidebar, isOpened } = useSidebar();
-// Reference to global search component
-const globalSearchRef = ref()
-
function openGlobalSearch() {
- globalSearchRef.value?.openSearch()
+ window.dispatchEvent(new CustomEvent('global-search-open'))
}
</script>