diff options
Diffstat (limited to 'fe/src/lib/Layout.svelte')
-rw-r--r-- | fe/src/lib/Layout.svelte | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fe/src/lib/Layout.svelte b/fe/src/lib/Layout.svelte index f208f34..2728dd3 100644 --- a/fe/src/lib/Layout.svelte +++ b/fe/src/lib/Layout.svelte | |||
@@ -1,9 +1,13 @@ | |||
1 | <script> | 1 | <script> |
2 | import { authenticated, token } from "../stores/auth"; | 2 | import { authenticated, token, user, preferences } from "../stores/auth"; |
3 | import PreferencesForm from "./PreferencesForm.svelte"; | 3 | import PreferencesForm from "./PreferencesForm.svelte"; |
4 | import { addFormOpen } from "../stores/forms"; | 4 | import { addFormOpen } from "../stores/forms"; |
5 | 5 | ||
6 | const logout = () => token.unauthenticate(); | 6 | const logout = () => { |
7 | preferences.reset(); | ||
8 | user.reset(); | ||
9 | token.unauthenticate(); | ||
10 | } | ||
7 | let preferenceFormOpen = false; | 11 | let preferenceFormOpen = false; |
8 | 12 | ||
9 | function showPreferencesDialog() { | 13 | function showPreferencesDialog() { |