Move software files one directory up, Readme
This commit is contained in:
50
src/components/navigation/navigationAppendItems.vue
Normal file
50
src/components/navigation/navigationAppendItems.vue
Normal file
@@ -0,0 +1,50 @@
|
||||
<script setup lang="ts">
|
||||
import { useAccountStore } from '@/stores/account.store';
|
||||
import { useBasketStore } from '@/stores/basket.store';
|
||||
import { useExerciseStore } from '@/stores/exercise.store';
|
||||
|
||||
const accountStore = useAccountStore()
|
||||
const basketStore = useBasketStore()
|
||||
const exerciseStore = useExerciseStore()
|
||||
|
||||
exerciseStore.getAllExercises()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<v-btn variant="plain" icon="mdi-magnify" to="/search" />
|
||||
|
||||
<v-btn
|
||||
v-if="accountStore.userAccountToken == ''"
|
||||
variant="plain"
|
||||
icon="mdi-account"
|
||||
to="/account/login"
|
||||
/>
|
||||
|
||||
<v-btn v-else variant="plain" icon="mdi-account-check" to="/account/home" />
|
||||
|
||||
<div>
|
||||
<v-badge
|
||||
:content="basketStore.itemsInBasket.reduce((tot, item) => {
|
||||
return tot + item.seats.length
|
||||
}, 0)"
|
||||
color="red" offset-x="8" offset-y="8">
|
||||
<v-btn variant="plain" icon="mdi-cart" to="/basket" />
|
||||
</v-badge>
|
||||
</div>
|
||||
|
||||
<v-btn
|
||||
v-if="accountStore.adminPanelVisible"
|
||||
variant="plain"
|
||||
icon="mdi-table-cog"
|
||||
to="/admin"
|
||||
/>
|
||||
|
||||
<v-btn
|
||||
v-if="exerciseStore.helpPageVisible"
|
||||
variant="plain"
|
||||
icon="mdi-help"
|
||||
to="/help"
|
||||
/>
|
||||
|
||||
<v-btn variant="plain" icon="mdi-cog" to="/preferences"/>
|
||||
</template>
|
||||
Reference in New Issue
Block a user