parent callback will cast afterLastPaneAction, that manage redirection or context changes

This commit is contained in:
2021-09-20 12:24:28 +02:00
parent 717cd03d95
commit 75a240a2d6
4 changed files with 21 additions and 16 deletions

View File

@@ -32,7 +32,7 @@ export default {
},
mounted() {
console.log('AddAddress: data context', this.context);
//console.log('AddAddress: data options', this.options);
console.log('AddAddress: data options', this.options);
},
methods: {
displayErrors() {
@@ -45,7 +45,7 @@ export default {
if (this.context.edit) {
// address is already linked, just finish !
this.$refs.addAddress.lastPaneAction();
this.$refs.addAddress.afterLastPaneAction({});
// New created address
} else {
@@ -93,7 +93,7 @@ export default {
this.$refs.addAddress.flag.success = true;
// finish
this.$refs.addAddress.lastPaneAction();
this.$refs.addAddress.afterLastPaneAction({ addressId: address.address_id });
resolve();
}))
@@ -111,7 +111,7 @@ export default {
this.$refs.addAddress.flag.success = true;
// finish
this.$refs.addAddress.lastPaneAction();
this.$refs.addAddress.afterLastPaneAction({ addressId: address.address_id });
resolve();
}))