permission system and no access redirect

This commit is contained in:
Julian Krauser 2024-08-26 13:46:54 +02:00
parent 214f0ddf21
commit cb80771f7a
8 changed files with 107 additions and 18 deletions

View file

@ -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,