@@ -164,7 +164,6 @@ import { useRouter } from "vue-router";
164164import { useDisplay } from " vuetify" ;
165165import Logo from " ../assets/logo-inverted.png" ;
166166import { envVariables } from " ../envVariables" ;
167- import { useStore } from " ../store" ;
168167import UserWarning from " ../components/User/UserWarning.vue" ;
169168import Namespace from " @/components/Namespace/Namespace.vue" ;
170169import AppBar from " ../components/AppBar/AppBar.vue" ;
@@ -174,15 +173,16 @@ import Snackbar from "@/components/Snackbar/Snackbar.vue";
174173import useLayoutStore from " @/store/modules/layout" ;
175174import useNamespacesStore from " @/store/modules/namespaces" ;
176175import usePrivateKeysStore from " @/store/modules/private_keys" ;
176+ import useSpinnerStore from " @/store/modules/spinner" ;
177177
178178defineOptions ({
179179 inheritAttrs: false ,
180180});
181181
182182const router = useRouter ();
183- const store = useStore ();
184183const layoutStore = useLayoutStore ();
185184const namespacesStore = useNamespacesStore ();
185+ const spinnerStore = useSpinnerStore ();
186186const { getPrivateKeyList } = usePrivateKeysStore ();
187187const currentRoute = computed (() => router .currentRoute );
188188const showNamespaceAdd = ref (false );
@@ -195,8 +195,8 @@ const permanent = computed(() => lgAndUp.value);
195195const showNavigationDrawer = ref (lgAndUp .value );
196196
197197const hasSpinner = computed ({
198- get() { return store . getters [ " spinner/ status" ] ; },
199- set(v ) { store . dispatch ( " spinner/setStatus " , v ) ; },
198+ get() { return spinnerStore . status ; },
199+ set(newStatus ) { spinnerStore . status = newStatus ; },
200200});
201201
202202const disableItem = (item : string ) => ! hasNamespaces .value && item !== " Settings" ;
0 commit comments