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.

fix: capture click evant when login with a provider to avoid error display during small time

Smaug67391965c79bceb2
diff --git a/frontend/app/components/OIDCProviders.vue b/frontend/app/components/OIDCProviders.vue
index 1304f79a..ae2335cd 100644
--- a/frontend/app/components/OIDCProviders.vue
+++ b/frontend/app/components/OIDCProviders.vue
@@ -10,7 +10,7 @@
class="provider-btn"
:style="{ '--provider-color': getProviderConfig(provider.name).color }"
:disabled="isLoading"
- @click="loginWithProvider(provider.name)"
+ @click.prevent="loginWithProvider(provider.name)"
>
<!-- eslint-disable-next-line vue/no-v-html | Safe: icons are statically defined, not user input -->
<span class="provider-icon" v-html="getProviderConfig(provider.name).icon"></span>