Navigation Tweaks

This commit is contained in:
2024-05-18 08:49:56 -04:00
parent 97481a5d2e
commit d6339815aa
6 changed files with 129 additions and 87 deletions

View File

@@ -7,11 +7,13 @@
<script lang="ts" setup>
import BoatPreviewComponent from 'src/components/boat/BoatPreviewComponent.vue';
import { ref } from 'vue';
import { onMounted } from 'vue';
import { useBoatStore } from 'src/stores/boat';
import ToolbarComponent from 'src/components/ToolbarComponent.vue';
import { storeToRefs } from 'pinia';
const boatStore = useBoatStore();
boatStore.fetchBoats();
const boats = ref(useBoatStore().boats);
const { boats } = storeToRefs(boatStore);
onMounted(() => boatStore.fetchBoats());
</script>