Fixed compatibility with new types and fixed issue with routes
This commit is contained in:
parent
42c891836b
commit
ec97bae72d
|
@ -24,7 +24,7 @@
|
||||||
"typescript": "^4.2.4"
|
"typescript": "^4.2.4"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@flaschengeist/types": "^0.0.1-alpha.1",
|
"@flaschengeist/types": "^1.0.0-alpha.1",
|
||||||
"@flaschengeist/api": "^1.0.0-alpha.1",
|
"@flaschengeist/api": "^1.0.0-alpha.1",
|
||||||
"pinia": "^2.0.0-alpha.18",
|
"pinia": "^2.0.0-alpha.18",
|
||||||
"quasar": "^2.0.0-beta.17",
|
"quasar": "^2.0.0-beta.17",
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import { pinia, useMainStore } from '@flaschengeist/api';
|
import { useMainStore } from '@flaschengeist/api';
|
||||||
import { FG_Plugin } from '@flaschengeist/types';
|
import { FG_Plugin } from '@flaschengeist/types';
|
||||||
|
|
||||||
const mainRoutes: FG_Plugin.MenuRoute[] = [
|
const mainRoutes: FG_Plugin.MenuRoute[] = [
|
||||||
{
|
{
|
||||||
get title() {
|
get title() {
|
||||||
return () => useMainStore(pinia.value).currentUser.display_name;
|
return () => useMainStore().currentUser.display_name;
|
||||||
},
|
},
|
||||||
icon: 'mdi-account',
|
icon: 'mdi-account',
|
||||||
permissions: ['user'],
|
permissions: ['user'],
|
||||||
|
|
Loading…
Reference in New Issue