Fixed compatibility with new types and fixed issue with routes

This commit is contained in:
Ferdinand Thiessen 2021-05-25 18:59:28 +02:00
parent 42c891836b
commit ec97bae72d
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@
"typescript": "^4.2.4"
},
"peerDependencies": {
"@flaschengeist/types": "^0.0.1-alpha.1",
"@flaschengeist/types": "^1.0.0-alpha.1",
"@flaschengeist/api": "^1.0.0-alpha.1",
"pinia": "^2.0.0-alpha.18",
"quasar": "^2.0.0-beta.17",

View File

@ -1,10 +1,10 @@
import { pinia, useMainStore } from '@flaschengeist/api';
import { useMainStore } from '@flaschengeist/api';
import { FG_Plugin } from '@flaschengeist/types';
const mainRoutes: FG_Plugin.MenuRoute[] = [
{
get title() {
return () => useMainStore(pinia.value).currentUser.display_name;
return () => useMainStore().currentUser.display_name;
},
icon: 'mdi-account',
permissions: ['user'],