mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
address: automatic return when saving address
This commit is contained in:
parent
8109415e05
commit
93a44d8303
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user