mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-07-23 04:58:47 +02:00
feat:#15 added selection in datatable to store and removed selectAll
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user