quick fix: address: add backurl after posting the address

This commit is contained in:
nobohan 2021-06-30 18:26:44 +02:00
parent 662e5f967c
commit 0b5daa6c33
2 changed files with 3 additions and 2 deletions

View File

@ -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);
} }
} }
}; };

View File

@ -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) => {