mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
parent callback will cast afterLastPaneAction, that manage redirection or context changes
This commit is contained in:
@@ -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();
|
||||
}))
|
||||
|
Reference in New Issue
Block a user