mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 06:26:15 +00:00
Merge branch 'issue317_add_geom_to_postal_code' into 'master'
Issue317 add geom to postal code See merge request Chill-Projet/chill-bundles!236
This commit is contained in:
commit
69e260f0b1
@ -11,6 +11,8 @@ and this project adheres to
|
|||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
<!-- write down unreleased development here -->
|
<!-- write down unreleased development here -->
|
||||||
|
* [main] translate multiselect messages when selecting/creating address
|
||||||
|
* [main] set the coordinates of the city when creating a new address OR choosing "pas d'adresse complète"
|
||||||
* Use the user.label in accompanying course banner, instead of username;
|
* Use the user.label in accompanying course banner, instead of username;
|
||||||
* fix: show validation message when closing accompanying course;
|
* fix: show validation message when closing accompanying course;
|
||||||
* [thirdparty] link from modal to thirdparty detail page fixed (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/228)
|
* [thirdparty] link from modal to thirdparty detail page fixed (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/228)
|
||||||
|
@ -588,6 +588,12 @@ export default {
|
|||||||
newAddress = Object.assign(newAddress, {
|
newAddress = Object.assign(newAddress, {
|
||||||
'point': this.entity.selected.address.point.coordinates
|
'point': this.entity.selected.address.point.coordinates
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
if (this.entity.selected.postcode.coordinates) {
|
||||||
|
newAddress = Object.assign(newAddress, {
|
||||||
|
'point': this.entity.selected.postcode.coordinates
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// add the address reference, if any
|
// add the address reference, if any
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
<VueMultiselect
|
<VueMultiselect
|
||||||
id="addressSelector"
|
id="addressSelector"
|
||||||
v-model="value"
|
v-model="value"
|
||||||
|
:placeholder="$t('select_address')"
|
||||||
|
:tag-placeholder="$t('create_address')"
|
||||||
|
:select-label="$t('press_enter_to_select')"
|
||||||
|
:deselect-label="$t('create_address')"
|
||||||
@search-change="listenInputSearch"
|
@search-change="listenInputSearch"
|
||||||
ref="addressSelector"
|
ref="addressSelector"
|
||||||
@select="selectAddress"
|
@select="selectAddress"
|
||||||
@ -14,8 +18,6 @@
|
|||||||
:taggable="true"
|
:taggable="true"
|
||||||
:multiple="false"
|
:multiple="false"
|
||||||
@tag="addAddress"
|
@tag="addAddress"
|
||||||
:placeholder="$t('select_address')"
|
|
||||||
:tagPlaceholder="$t('create_address')"
|
|
||||||
:options="addresses">
|
:options="addresses">
|
||||||
</VueMultiselect>
|
</VueMultiselect>
|
||||||
</div>
|
</div>
|
||||||
@ -141,7 +143,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
addAddress() {
|
addAddress() {
|
||||||
console.log('addAddress: pass here ?? never, it seems');
|
|
||||||
this.entity.selected.writeNew.address = true;
|
this.entity.selected.writeNew.address = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
label="value"
|
label="value"
|
||||||
:custom-label="transName"
|
:custom-label="transName"
|
||||||
:placeholder="$t('select_city')"
|
:placeholder="$t('select_city')"
|
||||||
|
:select-label="$t('press_enter_to_select')"
|
||||||
|
:deselect-label="$t('create_postal_code')"
|
||||||
:taggable="true"
|
:taggable="true"
|
||||||
:multiple="false"
|
:multiple="false"
|
||||||
@tag="addPostcode"
|
@tag="addPostcode"
|
||||||
@ -101,6 +103,7 @@ export default {
|
|||||||
this.entity.selected.city = value;
|
this.entity.selected.city = value;
|
||||||
this.entity.selected.postcode.name = value.name;
|
this.entity.selected.postcode.name = value.name;
|
||||||
this.entity.selected.postcode.code = value.code;
|
this.entity.selected.postcode.code = value.code;
|
||||||
|
this.entity.selected.postcode.coordinates = value.center.coordinates;
|
||||||
this.entity.selected.writeNew.postcode = false;
|
this.entity.selected.writeNew.postcode = false;
|
||||||
console.log('writeNew.postcode false, in selectCity');
|
console.log('writeNew.postcode false, in selectCity');
|
||||||
this.$emit('getReferenceAddresses', value);
|
this.$emit('getReferenceAddresses', value);
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
v-bind:placeholder="$t('select_country')"
|
v-bind:placeholder="$t('select_country')"
|
||||||
v-bind:options="sortedCountries"
|
v-bind:options="sortedCountries"
|
||||||
v-model="value"
|
v-model="value"
|
||||||
|
:select-label="$t('press_enter_to_select')"
|
||||||
|
:deselect-label="$t('press_enter_to_remove')"
|
||||||
@select="selectCountry">
|
@select="selectCountry">
|
||||||
</VueMultiselect>
|
</VueMultiselect>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
const addressMessages = {
|
const addressMessages = {
|
||||||
fr: {
|
fr: {
|
||||||
|
press_enter_to_select: 'Appuyer sur Entrée pour sélectionner',
|
||||||
|
press_enter_to_remove: 'Appuyer sur Entrée pour désélectionner',
|
||||||
add_an_address_title: 'Créer une adresse',
|
add_an_address_title: 'Créer une adresse',
|
||||||
edit_an_address_title: 'Modifier une adresse',
|
edit_an_address_title: 'Modifier une adresse',
|
||||||
create_a_new_address: 'Créer une nouvelle adresse',
|
create_a_new_address: 'Créer une nouvelle adresse',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user