mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
rename key in payload
This commit is contained in:
@@ -25,7 +25,7 @@ export default {
|
||||
let payload = {
|
||||
entity: this.context.entity.type,
|
||||
entityId: this.context.entity.id,
|
||||
addressToPatch: 'person',
|
||||
locationStatusTo: 'person',
|
||||
personId: this.person.id
|
||||
};
|
||||
this.$store.dispatch('updateLocation', payload);
|
||||
|
@@ -121,7 +121,7 @@ export default {
|
||||
let payload = {
|
||||
entity: this.context.entity.type,
|
||||
entityId: this.context.entity.id,
|
||||
addressToPatch: 'none'
|
||||
locationStatusTo: 'none'
|
||||
};
|
||||
this.$store.dispatch('updateLocation', payload);
|
||||
},
|
||||
@@ -130,12 +130,8 @@ export default {
|
||||
},
|
||||
submitTemporaryAddress() {
|
||||
console.log('@@@ click on Submit Temporary Address Button');
|
||||
|
||||
let payload = this.$refs.addAddress.submitNewAddress();
|
||||
|
||||
// precise in payload that it is a temporary address
|
||||
payload['addressToPatch'] = 'address';
|
||||
|
||||
payload['locationStatusTo'] = 'address'; // <== temporary, not none, not person
|
||||
this.$store.dispatch('updateLocation', payload);
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user