diff --git a/package.json b/package.json index 7e5c8bc3..ffb8fe45 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "lodash.debounce": "4.0.8", "marked": "4.1.0", "minimist": "1.2.6", + "pinia": "^2.0.21", "register-service-worker": "1.7.2", "snake-case": "3.0.4", "ufo": "0.8.5", diff --git a/src/components/home/contentAuth.vue b/src/components/home/contentAuth.vue index c4b42015..b41e86e5 100644 --- a/src/components/home/contentAuth.vue +++ b/src/components/home/contentAuth.vue @@ -66,6 +66,7 @@ import {useRoute, useRouter} from 'vue-router' import {useEventListener} from '@vueuse/core' import {CURRENT_LIST, KEYBOARD_SHORTCUTS_ACTIVE, MENU_ACTIVE} from '@/store/mutation-types' +import {useLabelStore} from '@/stores/labels' import Navigation from '@/components/home/navigation.vue' import QuickActions from '@/components/quick-actions/quick-actions.vue' import BaseButton from '@/components/base/BaseButton.vue' @@ -197,7 +198,8 @@ function useRenewTokenOnFocus() { } useRenewTokenOnFocus() -store.dispatch('labels/loadAllLabels') +const labelStore = useLabelStore() +labelStore.loadAllLabels()