Started work on Schedule Management

This commit is contained in:
2024-05-06 17:22:11 -04:00
parent 8e73650462
commit 2872fb867e
5 changed files with 81 additions and 33 deletions

View File

@@ -2,17 +2,21 @@
<router-view />
</template>
<script lang="ts">
<script setup lang="ts">
import { defineComponent, onMounted } from 'vue';
import { useBoatStore } from './stores/boat';
import { useScheduleStore } from './stores/schedule';
import { useAuthStore } from './stores/auth';
export default defineComponent({
defineComponent({
name: 'OYS Borrow-a-Boat',
});
onMounted(async () => {
await useBoatStore().fetchBoats();
await useScheduleStore().fetchTimeBlocks();
if (useAuthStore().currentUser) {
await useBoatStore().fetchBoats();
await useScheduleStore().fetchTimeBlocks();
await useScheduleStore().fetchTimeBlockTemplates();
}
});
</script>