Bugfixing
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user