diff --git a/packages/web-app-ocm/src/index.ts b/packages/web-app-ocm/src/index.ts index 2c7522e976d..16629c083e3 100644 --- a/packages/web-app-ocm/src/index.ts +++ b/packages/web-app-ocm/src/index.ts @@ -1,5 +1,5 @@ import App from './views/App.vue' -import { defineWebApplication, useRouter, useStore } from '@ownclouders/web-pkg' +import { defineWebApplication, useRouter, useUserStore } from '@ownclouders/web-pkg' import translations from '../l10n/translations.json' import { extensions } from './extensions' import { RouteRecordRaw } from 'vue-router' @@ -27,7 +27,7 @@ export default defineWebApplication({ setup() { const { $gettext } = useGettext() const router = useRouter() - const store = useStore() + const userStore = useUserStore() const appInfo = { name: $gettext('ScienceMesh'), @@ -37,7 +37,7 @@ export default defineWebApplication({ isFileEditor: false, applicationMenu: { enabled: () => { - return !!store.getters?.user?.id + return !!userStore.user } } } diff --git a/packages/web-runtime/tests/unit/components/Topbar/__snapshots__/UserMenu.spec.ts.snap b/packages/web-runtime/tests/unit/components/Topbar/__snapshots__/UserMenu.spec.ts.snap index 0421c53b7a9..02f4b033b7f 100644 --- a/packages/web-runtime/tests/unit/components/Topbar/__snapshots__/UserMenu.spec.ts.snap +++ b/packages/web-runtime/tests/unit/components/Topbar/__snapshots__/UserMenu.spec.ts.snap @@ -3,17 +3,21 @@ exports[`User Menu component when no quota and email is set the user menu does not contain a quota 1`] = `