address: automatic return when saving address

This commit is contained in:
nobohan
2021-06-29 15:06:35 +02:00
parent 8109415e05
commit 93a44d8303
2 changed files with 7 additions and 6 deletions

View File

@@ -118,11 +118,12 @@ export default {
modal.showModal = false;
},
addToHousehold() {
this.$store.dispatch('addDateToAddressAndAddressToHousehold', {
householdId: this.householdId,
addressId: this.$store.state.newAddress.address_id,
body: { validFrom: {datetime: `${this.validFrom}T00:00:00+0100`}}
})
this.$store.dispatch('addDateToAddressAndAddressToHousehold', {
householdId: this.householdId,
addressId: this.$store.state.newAddress.address_id,
body: { validFrom: {datetime: `${this.validFrom}T00:00:00+0100`}}
})
window.location.assign(this.backUrl);
}
}
};