Address: fix callback function when called by another component (CourseLocation and HouseholdMembersEditor)

This commit is contained in:
2021-09-22 18:48:15 +02:00
parent 4768785bb5
commit d52ab2188c
2 changed files with 7 additions and 8 deletions

View File

@@ -42,7 +42,7 @@
:key="addAddress.type"
:options="addAddress.options"
:result="addAddress.result"
:addressChanged="submitTemporaryAddress"
:addressChangedCallback="submitTemporaryAddress"
ref="addAddress">
</add-address>
</li>
@@ -146,7 +146,7 @@ export default {
return this.$refs.addAddress.errorMsg;
},
submitTemporaryAddress(payload) {
//console.log('@@@ click on Submit Temporary Address Button');
console.log('@@@ click on Submit Temporary Address Button', payload);
payload['locationStatusTo'] = 'address'; // <== temporary, not none, not person
this.$store.dispatch('updateLocation', payload);
this.$store.commit('setEditContextTrue');
@@ -155,9 +155,9 @@ export default {
mounted() {
this.initAddressContext();
//console.log('ac.locationStatus', this.accompanyingCourse.locationStatus);
//console.log('ac.location (temporary location)', this.accompanyingCourse.location);
//console.log('ac.personLocation', this.accompanyingCourse.personLocation);
console.log('ac.locationStatus', this.accompanyingCourse.locationStatus);
console.log('ac.location (temporary location)', this.accompanyingCourse.location);
console.log('ac.personLocation', this.accompanyingCourse.personLocation);
}
}
</script>