Bugfixing

This commit is contained in:
Michal Kváček
2024-10-14 06:38:52 +02:00
parent be977ee241
commit 92c9e53ea0
5 changed files with 19 additions and 8 deletions
@@ -6,6 +6,7 @@ import {usePointsOfInterestStore} from "stores/PointsOfInterest";
import {successObject} from "src/composables/dialog";
import {useAppStore} from "stores/App";
import {storeToRefs} from "pinia";
import {usePointsOfInterestTypeStore} from "stores/PointOfInterestType";
const $q = useQuasar();
const router = useRouter();
@@ -22,10 +23,16 @@ useAppStore().setBreadcrumbs([
{label: "Nové"},
])
const {isMutationRunning} = storeToRefs(usePointsOfInterestStore());
usePointsOfInterestTypeStore().fetch();
const {isMutationRunning} = storeToRefs(usePointsOfInterestStore());
const {types} = storeToRefs(usePointsOfInterestTypeStore());
</script>
<template>
<POIForm @save="handleSave" :is-request-pending="isMutationRunning"/>
<POIForm
:types="types"
:is-request-pending="isMutationRunning"
@save="handleSave"
/>
</template>