permission system and no access redirect
This commit is contained in:
parent
214f0ddf21
commit
cb80771f7a
8 changed files with 107 additions and 18 deletions
|
@ -1,5 +1,6 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { shallowRef, defineAsyncComponent } from "vue";
|
||||
import { useAccountStore } from "../account";
|
||||
|
||||
export interface navigationModel {
|
||||
club: navigationSplitModel;
|
||||
|
@ -30,6 +31,7 @@ export interface navigationLinkModel {
|
|||
|
||||
export const useNavigationStore = defineStore("navigation", {
|
||||
state: () => {
|
||||
const accountStore = useAccountStore();
|
||||
return {
|
||||
activeNavigation: "club" as topLevelNavigationType,
|
||||
activeLink: null as null | navigationLinkModel,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue