Address datePane: validTo date display and format

This commit is contained in:
2021-09-22 17:20:31 +02:00
parent d994612987
commit a8024ba38f
3 changed files with 26 additions and 22 deletions

View File

@@ -280,7 +280,7 @@ export default {
},
valid: {
from: new Date(),
to: new Date()
to: null
}
},
addressMap: {
@@ -609,8 +609,10 @@ export default {
if (this.context.target.name === 'person') { // !!! maintain here ?
postcodeBody = Object.assign(postcodeBody, {'origin': 3});
}
console.log('juste before post new postcode', postcodeBody);
return postPostalCode(postcodeBody)
.then(postalCode => {
console.log('new postcode created', postalCode.id);
payload.postcode = {'id': postalCode.id };
return this.postNewAddress(payload);
});