base structure

This commit is contained in:
Julian Krauser 2024-11-16 12:19:13 +01:00
parent 967d815784
commit d6f28022f0
7 changed files with 99 additions and 26 deletions

View file

@ -7,10 +7,22 @@
:showTopList="activeNavigationObject.top != null"
>
<template #topList>
<RoutingLink v-for="item in activeNavigationObject.top" :key="item.key" :link="item" />
<RoutingLink
v-for="item in activeNavigationObject.top"
:key="item.key"
:title="item.title"
:link="{ name: `admin-${activeNavigation}-${item.key}` }"
:active="activeLink == item.key"
/>
</template>
<template #list>
<RoutingLink v-for="item in activeNavigationObject.main" :key="item.key" :link="item" />
<RoutingLink
v-for="item in activeNavigationObject.main"
:key="item.key"
:title="item.title"
:link="{ name: `admin-${activeNavigation}-${item.key}` }"
:active="activeLink == item.key"
/>
</template>
</SidebarTemplate>
</template>
@ -33,14 +45,13 @@ import { RouterView } from "vue-router";
<script lang="ts">
export default defineComponent({
props: {
contestId: {
type: String,
default: "",
},
},
computed: {
...mapState(useNavigationStore, ["activeNavigationObject", "activeTopLevelObject", "activeLink"]),
...mapState(useNavigationStore, [
"activeNavigationObject",
"activeTopLevelObject",
"activeLink",
"activeNavigation",
]),
},
created() {
useAbilityStore().$subscribe(() => {