mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
minor details
This commit is contained in:
parent
2f28e02f65
commit
1d2cbc4f62
@ -570,9 +570,7 @@ export default {
|
|||||||
case 'household':
|
case 'household':
|
||||||
postAddressToHousehold(payload.entityId, payload.addressId)
|
postAddressToHousehold(payload.entityId, payload.addressId)
|
||||||
.then(household => new Promise((resolve, reject) => {
|
.then(household => new Promise((resolve, reject) => {
|
||||||
|
console.log('postAddressToHousehold', household);
|
||||||
console.log('TODO commit addAddressToHousehold', household);
|
|
||||||
|
|
||||||
this.flag.loading = false;
|
this.flag.loading = false;
|
||||||
this.flag.success = true;
|
this.flag.success = true;
|
||||||
window.location.assign(payload.backUrl);
|
window.location.assign(payload.backUrl);
|
||||||
@ -587,10 +585,7 @@ export default {
|
|||||||
case 'person':
|
case 'person':
|
||||||
postAddressToPerson(payload.entityId, payload.addressId)
|
postAddressToPerson(payload.entityId, payload.addressId)
|
||||||
.then(person => new Promise((resolve, reject) => {
|
.then(person => new Promise((resolve, reject) => {
|
||||||
|
console.log('postAddressToPerson', person);
|
||||||
console.log('TODO commit addAddressToPerson !!!', person);
|
|
||||||
//this.$props.result = person;
|
|
||||||
|
|
||||||
this.flag.loading = false;
|
this.flag.loading = false;
|
||||||
this.flag.success = true;
|
this.flag.success = true;
|
||||||
window.location.assign(payload.backUrl);
|
window.location.assign(payload.backUrl);
|
||||||
@ -605,7 +600,8 @@ export default {
|
|||||||
default:
|
default:
|
||||||
this.errorMsg.push('That entity is not managed by address !');
|
this.errorMsg.push('That entity is not managed by address !');
|
||||||
}
|
}
|
||||||
} else { // address is already linked, just finish !
|
} else {
|
||||||
|
// address is already linked, just finish !
|
||||||
window.location.assign(payload.backUrl);
|
window.location.assign(payload.backUrl);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user