mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
address: back to the page when the address is filled
This commit is contained in:
parent
f0232228a3
commit
67c31e781d
@ -131,7 +131,8 @@ export default {
|
|||||||
this.$store.dispatch('addDateToAddressAndAddressToPerson', {
|
this.$store.dispatch('addDateToAddressAndAddressToPerson', {
|
||||||
personId: this.personId,
|
personId: this.personId,
|
||||||
addressId: this.$store.state.address.address_id,
|
addressId: this.$store.state.address.address_id,
|
||||||
body: { validFrom: {datetime: `${this.validFrom}T00:00:00+0100`}}
|
body: { validFrom: {datetime: `${this.validFrom}T00:00:00+0100`}},
|
||||||
|
backUrl: this.backUrl
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getEditAddress() {
|
getEditAddress() {
|
||||||
|
@ -95,9 +95,10 @@ const store = createStore({
|
|||||||
postAddressToPerson(payload.personId, payload.addressId)
|
postAddressToPerson(payload.personId, payload.addressId)
|
||||||
.then(person => new Promise((resolve, reject) => {
|
.then(person => new Promise((resolve, reject) => {
|
||||||
commit('addAddressToPerson', person);
|
commit('addAddressToPerson', person);
|
||||||
resolve();
|
|
||||||
commit('setLoading', false);
|
commit('setLoading', false);
|
||||||
commit('setSuccess', true);
|
commit('setSuccess', true);
|
||||||
|
window.location.assign(payload.backUrl);
|
||||||
|
resolve();
|
||||||
}))
|
}))
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
commit('catchError', error);
|
commit('catchError', error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user