mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
quick fix: address: add backurl after posting the address
This commit is contained in:
parent
662e5f967c
commit
0b5daa6c33
@ -121,9 +121,9 @@ export default {
|
|||||||
this.$store.dispatch('addDateToAddressAndAddressToHousehold', {
|
this.$store.dispatch('addDateToAddressAndAddressToHousehold', {
|
||||||
householdId: this.householdId,
|
householdId: this.householdId,
|
||||||
addressId: this.$store.state.newAddress.address_id,
|
addressId: this.$store.state.newAddress.address_id,
|
||||||
body: { validFrom: {datetime: `${this.validFrom}T00:00:00+0100`}}
|
body: { validFrom: {datetime: `${this.validFrom}T00:00:00+0100`}},
|
||||||
|
backUrl: this.backUrl
|
||||||
})
|
})
|
||||||
window.location.assign(this.backUrl);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -88,6 +88,7 @@ const store = createStore({
|
|||||||
commit('addAddressToHousehold', household);
|
commit('addAddressToHousehold', household);
|
||||||
commit('setSuccess', true);
|
commit('setSuccess', true);
|
||||||
commit('setLoading', false);
|
commit('setLoading', false);
|
||||||
|
window.location.assign(payload.backUrl);
|
||||||
resolve();
|
resolve();
|
||||||
}))
|
}))
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user