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

@@ -86,8 +86,7 @@ export default {
this.options.hideAddress : this.defaultz.hideAddress;
},
forceRedirect() {
return (typeof this.options.forceRedirect !== 'undefined') ?
this.options.forceRedirect : this.defaultz.forceRedirect;
return this.context.backUrl !== null;
},
noAddressWithStickyActions() {
return !this.context.edit && !this.address.id && this.options.stickyActions;