mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
location: display the error message in case of wrong phone number or email
This commit is contained in:
parent
4011fc6e77
commit
a768563cd0
@ -244,13 +244,20 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
postLocation(body).then(location => new Promise(resolve => {
|
postLocation(body)
|
||||||
console.log('postLocation', location);
|
.then(
|
||||||
this.locations.push(location);
|
location => new Promise(resolve => {
|
||||||
this.$store.dispatch('updateLocation', location);
|
console.log('postLocation', location);
|
||||||
resolve();
|
this.locations.push(location);
|
||||||
this.modal.showModal = false;
|
this.$store.dispatch('updateLocation', location);
|
||||||
}));
|
resolve();
|
||||||
|
this.modal.showModal = false;
|
||||||
|
})
|
||||||
|
).catch(
|
||||||
|
err => {
|
||||||
|
this.errors.push(err.message);
|
||||||
|
}
|
||||||
|
);
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
submitNewAddress(payload) {
|
submitNewAddress(payload) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user