Skip to content

Commit db94e62

Browse files
committed
updates event name
1 parent 74f9517 commit db94e62

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

packages/web-forms/src/components/common/map/MapAdvancedPanel.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const props = defineProps<{
99
selectedVertex: Coordinate | undefined;
1010
}>();
1111
12-
const emit = defineEmits(['open-paste-dialog', 'update-vertex']);
12+
const emit = defineEmits(['open-paste-dialog', 'save']);
1313
1414
const accuracy = ref<number | undefined>();
1515
const latitude = ref<number | undefined>();
@@ -52,7 +52,7 @@ const updateVertex = () => {
5252
newVertex.push(accuracy.value);
5353
}
5454
55-
emit('update-vertex', fromLonLat(newVertex));
55+
emit('save', fromLonLat(newVertex));
5656
};
5757
</script>
5858

packages/web-forms/src/components/common/map/MapBlock.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ const undoLastChange = () => {
141141
emitSavedFeature();
142142
};
143143
144-
const updateCoords = () => {
144+
const updateFeatureCoords = () => {
145+
// todo
146+
};
147+
148+
const updateVertexCoords = () => {
145149
// todo
146150
};
147151
</script>
@@ -200,7 +204,12 @@ const updateCoords = () => {
200204
@open-advanced-panel="isAdvancedPanelOpen = !isAdvancedPanelOpen"
201205
/>
202206

203-
<MapAdvancedPanel :is-open="isAdvancedPanelOpen" :selected-vertex="selectedVertex" @open-paste-dialog="isUpdateCoordsDialogOpen = true" />
207+
<MapAdvancedPanel
208+
:is-open="isAdvancedPanelOpen"
209+
:selected-vertex="selectedVertex"
210+
@open-paste-dialog="isUpdateCoordsDialogOpen = true"
211+
@save="updateVertexCoords"
212+
/>
204213

205214
<MapProperties
206215
v-if="mapHandler.canViewProperties()"
@@ -234,7 +243,7 @@ const updateCoords = () => {
234243
<MapUpdateCoordsDialog
235244
v-model:visible="isUpdateCoordsDialogOpen"
236245
:draw-feature-type="drawFeatureType"
237-
@save="updateCoords"
246+
@save="updateFeatureCoords"
238247
/>
239248
</template>
240249

0 commit comments

Comments
 (0)