2024-08-23 12:42:32 +00:00
|
|
|
<template>
|
|
|
|
<footer
|
2024-09-01 17:19:48 +00:00
|
|
|
v-if="authCheck && routeName.includes('admin')"
|
2024-08-23 12:42:32 +00:00
|
|
|
class="md:hidden flex flex-row h-16 justify-center md:justify-normal p-1 bg-white"
|
|
|
|
>
|
|
|
|
<div class="w-full flex flex-row gap-2 h-full align-middle">
|
|
|
|
<TopLevelLink v-for="item in topLevel" :key="item.key" :link="item" :disableSubLink="true" />
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { mapState } from "pinia";
|
2024-09-17 14:44:02 +00:00
|
|
|
import { useAuthStore } from "@/stores/auth";
|
|
|
|
import { useNavigationStore } from "@/stores/admin/navigation";
|
2024-08-23 12:42:32 +00:00
|
|
|
import TopLevelLink from "./admin/TopLevelLink.vue";
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineComponent } from "vue";
|
|
|
|
export default defineComponent({
|
|
|
|
computed: {
|
|
|
|
...mapState(useAuthStore, ["authCheck"]),
|
|
|
|
...mapState(useNavigationStore, ["topLevel"]),
|
|
|
|
routeName() {
|
2024-09-01 17:19:48 +00:00
|
|
|
return typeof this.$route.name == "string" ? this.$route.name : "";
|
2024-08-23 12:42:32 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|