diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-06-12 14:26:40 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-06-12 14:26:40 +0200 |
| commit | 8ff9a84af416f9b9e791b74567d91635be5b1e82 (patch) | |
| tree | 86de64aa862a52621847a57c449ff908c3767f9b /apps/projects/src/app | |
| parent | d86b4dfdf60020ec32532461f46da4ae6786e6d2 (diff) | |
| download | greatoffice-8ff9a84af416f9b9e791b74567d91635be5b1e82.tar.xz greatoffice-8ff9a84af416f9b9e791b74567d91635be5b1e82.zip | |
refactor: Use store for setting current locale instead of directly setting a cookie
This was not doable before because locale.ts was inside of projects and not web-shared
Diffstat (limited to 'apps/projects/src/app')
| -rw-r--r-- | apps/projects/src/app/pages/_layout.svelte | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/projects/src/app/pages/_layout.svelte b/apps/projects/src/app/pages/_layout.svelte index b75c062..f0f80a0 100644 --- a/apps/projects/src/app/pages/_layout.svelte +++ b/apps/projects/src/app/pages/_layout.svelte @@ -10,7 +10,6 @@ import { IconNames } from "$shared/lib/configuration"; import LL from "$app/lib/i18n/i18n-svelte"; import BlowoutToolbelt from "$shared/components/blowout-toolbelt.svelte"; - import { currentLocale } from "$shared/lib/locale"; let ProfileModalFunctions = {}; let showUserMenu = false; @@ -18,19 +17,13 @@ const userMenuId = "__menu_" + random_string(3); const username = get_session_data()?.profile.username; - function toolbelt_change(event) { - if (event.detail.name === "locale") { - currentLocale.set(event.detail.value); - } - } - onMount(() => { userMenuTriggerNode = document.getElementById("open-user-menu"); }); </script> <ProfileModal bind:functions={ProfileModalFunctions}/> -<BlowoutToolbelt on:change={toolbelt_change}/> +<BlowoutToolbelt/> <nav class="container max-width-xl@md width-fit-content@md width-100% max-width-none margin-y-xs@md margin-bottom-xs block@md position-relative@md position-absolute bottom-unset@md bottom-0"> <div class="tabs-nav-v2 justify-between"> |
