when creating new address, start first with edit panel

This commit is contained in:
Mathieu Jaumotte 2021-08-06 16:25:04 +02:00
parent 9f3ceb94f0
commit 6c0ab6f25e

View File

@ -203,7 +203,6 @@ export default {
}
return step2;
},
getTextTitle() {
if (this.options.title) {
return (this.context.edit) ? this.options.title.edit : this.options.title.create;
@ -242,7 +241,16 @@ export default {
if (this.context.addressId) {
this.getInitialAddress(this.context.addressId);
}
this.flag.showPane = true;
// when create new address, start first with editPane
if ( this.context.edit === false
&& this.flag.editPane === false
) {
this.openEditPane();
this.flag.editPane = true;
} else {
this.flag.showPane = true;
}
},
openEditPane() {