Skip to content

Commit

Permalink
add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAndBear committed Jan 15, 2024
1 parent a52617f commit 3326221
Show file tree
Hide file tree
Showing 4 changed files with 187 additions and 162 deletions.
6 changes: 3 additions & 3 deletions packages/web-app-ocm/src/index.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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'),
Expand All @@ -37,7 +37,7 @@ export default defineWebApplication({
isFileEditor: false,
applicationMenu: {
enabled: () => {
return !!store.getters?.user?.id
return !!userStore.user
}
}
}
Expand Down
Loading

0 comments on commit 3326221

Please sign in to comment.