From ef7fbf05971747b621b4a42573c702368fb55c6e Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Wed, 4 Sep 2024 20:12:53 +0200 Subject: [PATCH] Change color mode update --- app/components/App/Header.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/App/Header.vue b/app/components/App/Header.vue index 77842d5..1fcef69 100644 --- a/app/components/App/Header.vue +++ b/app/components/App/Header.vue @@ -4,7 +4,7 @@ const { user, loggedIn, clear } = await useUserSession() const isSettingsOpen = ref(false) const isDark = computed(() => colorMode.preference === 'dark') -const items = [ +const items = computed(() => [ [{ slot: 'account', disabled: true, @@ -21,7 +21,7 @@ const items = [ shortcut: 'S', }, { label: isDark.value ? 'Light mode' : 'Dark mode', - icon: isDark.value ? 'i-ph:moon-duotone' : 'i-ph:sun-duotone', + icon: isDark.value ? 'i-ph:sun-duotone' : 'i-ph:moon-duotone', action: () => toggleColorMode(), shortcut: 'T', }], @@ -31,7 +31,7 @@ const items = [ icon: 'i-ph:sign-out-bold', shortcut: 'L', }], -] +]) async function logout() { await clear()