mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 18:39:43 +00:00
Address: replace variable entity.type by entity.name
This commit is contained in:
@@ -437,7 +437,7 @@ export default {
|
||||
if ('newPostcode' in payload) {
|
||||
|
||||
let postcodeBody = payload.newPostcode;
|
||||
if (this.context.entity.type === 'person') {
|
||||
if (this.context.entity.name === 'person') {
|
||||
postcodeBody = Object.assign(postcodeBody, {'origin': 3});
|
||||
}
|
||||
return postPostalCode(postcodeBody)
|
||||
@@ -459,7 +459,7 @@ export default {
|
||||
this.flag.loading = false;
|
||||
this.flag.success = true;
|
||||
resolve({
|
||||
entity: this.context.entity.type,
|
||||
entity: this.context.entity.name,
|
||||
entityId: this.context.entity.id,
|
||||
addressId: this.entity.address.address_id
|
||||
}
|
||||
@@ -505,7 +505,7 @@ export default {
|
||||
this.flag.loading = false;
|
||||
this.flag.success = true;
|
||||
return resolve({
|
||||
entity: this.context.entity.type,
|
||||
entity: this.context.entity.name,
|
||||
entityId: this.context.entity.id,
|
||||
addressId: this.entity.address.address_id
|
||||
});
|
||||
@@ -523,7 +523,7 @@ export default {
|
||||
submitNewAddress()
|
||||
{
|
||||
let payload = {
|
||||
entity: this.context.entity.type,
|
||||
entity: this.context.entity.name,
|
||||
entityId: this.context.entity.id,
|
||||
addressId: this.entity.address.address_id
|
||||
};
|
||||
|
Reference in New Issue
Block a user