LocationDetailPage: Seat not selectable, loading animation during fetching

This commit is contained in:
2024-11-04 18:15:49 +01:00
parent a3e8d30b6c
commit ffccd9f2d4
10 changed files with 260 additions and 188 deletions

View File

@@ -0,0 +1,34 @@
<script setup lang="ts">
import { useLocationStore } from '@/stores/location.store';
import seatPlanMap from '@/components/seatPlanMap/seatPlanMap.vue';
import sectionDivider from '@/components/basics/sectionDivider.vue';
const locationStore = useLocationStore()
</script>
<template>
<!-- Seat Map divider -->
<v-row>
<v-col>
<section-divider :title="$t('location.seat.seatPlan')" />
</v-col>
</v-row>
<!-- Loading circle during fetching -->
<div v-if="locationStore.fetchInProgress">
<v-col class="text-center">
<circular-progress-indeterminate />
</v-col>
</div>
<!-- Seat map -->
<v-row v-else>
<v-col>
<seat-plan-map
:location="locationStore.location"
:seat-groups="locationStore.location.seatGroups"
:disabled="true"
/>
</v-col>
</v-row>
</template>