feat:#15 added selection in datatable to store and removed selectAll

This commit is contained in:
masterElmar
2023-11-29 01:51:20 +01:00
parent 6666faf802
commit d41e6f4a3c
6 changed files with 56 additions and 118 deletions

View File

@ -1,13 +1,24 @@
<script lang="ts" setup>
import MenuBar from "./components/MenuBar.vue";
import { RouterView } from "vue-router";
import {RouteRecordName, RouterView} from "vue-router";
import CalendarPreview from "./components/CalendarPreview.vue";
import moduleStore from "@/store/moduleStore.ts";
const disabledPages = ["room-finder", "faq", "imprint", "privacy-policy", "edit"];
const store = moduleStore();
const isDisabled = (routeName: RouteRecordName | null | undefined) => {
return !disabledPages.includes(routeName as string) && store.modules.size > 0
};
</script>
<template>
<MenuBar />
<RouterView />
<CalendarPreview />
<!-- show CalendarPreview but only on specific router views -->
<CalendarPreview v-if="isDisabled($route.name)"/>
</template>
<style scoped></style>