mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fixed: [vue][add-address] fix map center when editing existing address (corrections post review)
52512e45fc (note_1205935758)
This commit is contained in:
parent
6a14c2b9b3
commit
ce17f5f5c0
@ -99,7 +99,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
if (this.value.point) {
|
if (typeof this.value.point !== 'undefined') {
|
||||||
this.updateMapCenter(this.value.point);
|
this.updateMapCenter(this.value.point);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -104,7 +104,7 @@ export default {
|
|||||||
this.entity.selected.postcode.name = this.value.name;
|
this.entity.selected.postcode.name = this.value.name;
|
||||||
this.entity.selected.postcode.code = this.value.code;
|
this.entity.selected.postcode.code = this.value.code;
|
||||||
this.$emit('getReferenceAddresses', this.value);
|
this.$emit('getReferenceAddresses', this.value);
|
||||||
if (this.value.center) {
|
if (typeof this.value.center !== 'undefined') {
|
||||||
this.updateMapCenter(this.value.center);
|
this.updateMapCenter(this.value.center);
|
||||||
if (this.value.center.coordinates) {
|
if (this.value.center.coordinates) {
|
||||||
this.entity.selected.postcode.coordinates = this.value.center.coordinates;
|
this.entity.selected.postcode.coordinates = this.value.center.coordinates;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user