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 logout timestamp and login page

Smaug6739d802277c6de1
diff --git a/frontend/composables/user.ts b/frontend/composables/user.ts
index 5e53d238..f92e8bae 100644
--- a/frontend/composables/user.ts
+++ b/frontend/composables/user.ts
@@ -4,10 +4,8 @@ function logoutUser() {
.logout()
.then(() => {
useNotifications().add({ title: 'Success:', message: 'Logged out', type: 'success', timeout: 3000 });
- setTimeout(() => {
- store.post_logout();
- useRouter().push('/login');
- }, 3000);
+ store.post_logout();
+ useRouter().push('/login');
})
.catch(e => {
useNotifications().add({ title: 'Error:', message: e, type: 'error', timeout: 3000 });
diff --git a/frontend/pages/dashboard/settings/_views/security.vue b/frontend/pages/dashboard/settings/_views/security.vue
index 9bad3956..d7354f39 100644
--- a/frontend/pages/dashboard/settings/_views/security.vue
+++ b/frontend/pages/dashboard/settings/_views/security.vue
@@ -74,4 +74,9 @@ p {
color: $red;
font-size: 0.9rem;
}
+.err {
+ color: $red;
+ padding: 0.1rem 0.5rem;
+ font-size: 0.8rem;
+}
</style>
diff --git a/frontend/pages/dashboard/settings/index.vue b/frontend/pages/dashboard/settings/index.vue
index 34c4aedb..3ead0448 100644
--- a/frontend/pages/dashboard/settings/index.vue
+++ b/frontend/pages/dashboard/settings/index.vue
@@ -116,29 +116,6 @@ watchEffect(() => (currentPage.value = route.query.p || 'profile'));
background: none;
}
-.err {
- color: $red;
- padding: 0.1rem 0.5rem;
- font-size: 0.8rem;
-}
-.security_page {
- .last_connection {
- align-items: center;
- padding: 0.3rem 0.5rem;
- border-radius: 15px;
- background-color: var(--bg-contrast-2);
- }
- p {
- margin: 0.5rem;
- font-size: 0.9rem;
- }
-
- .warning {
- color: $red;
- font-size: 0.9rem;
- }
-}
-
@media screen and (max-width: 920px) {
.component {
width: 100%;