Address: remove forceRedirect option: backUrl option not null is considerated as forceRedirect true

This commit is contained in:
2021-09-22 13:18:46 +02:00
parent dbb9e6a663
commit dfc6ed9bf3
10 changed files with 14 additions and 28 deletions

View File

@@ -252,7 +252,6 @@ export default {
validFrom: false,
validTo: false
},
forceRedirect: false,
hideAddress: false
},
entity: {
@@ -324,6 +323,9 @@ export default {
bypassFirstStep() {
// exception: passing step0 if new address and pane are not in modal
return !this.context.edit && !this.inModal;
},
forceRedirect() {
return this.context.backUrl !== null;
}
},
mounted() {
@@ -396,7 +398,7 @@ export default {
this.openDatePane();
} else {
this.applyChanges();
if (!this.options.forceRedirect) {
if (!this.forceRedirect) {
this.openShowPane();
}
}
@@ -425,7 +427,7 @@ export default {
*/
afterLastPaneAction(params) {
this.initForm();
if (this.options.forceRedirect === true) {
if (this.forceRedirect) {
console.log("redirect to backUrl");
window.location.assign(this.context.backUrl);
} else {