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; modal.showModal = false;
}, },
addToHousehold() { addToHousehold() {
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`}}
}) })
window.location.assign(this.backUrl);
} }
} }
}; };

View File

@ -57,7 +57,7 @@
</div> </div>
{% endif %} {% endif %}
<a href="{{ path('chill_person_household_address_edit', { 'household_id': household.id, 'address_id' : address.id } ) }}" class="sc-button bt-edit"></a> {# <a href="{{ path('chill_person_household_address_edit', { 'household_id': household.id, 'address_id' : address.id } ) }}" class="sc-button bt-edit"></a> #}
</div> </div>
</div> </div>
</div> </div>