mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Address: improve forceRedirect condition, if backUrl is null or undefined
This commit is contained in:
parent
47d0043462
commit
4768785bb5
@ -325,7 +325,7 @@ export default {
|
|||||||
return !this.context.edit && !this.inModal;
|
return !this.context.edit && !this.inModal;
|
||||||
},
|
},
|
||||||
forceRedirect() {
|
forceRedirect() {
|
||||||
return this.context.backUrl !== null;
|
return (!(this.context.backUrl === null || typeof this.context.backUrl === 'undefined'));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -86,7 +86,7 @@ export default {
|
|||||||
this.options.hideAddress : this.defaultz.hideAddress;
|
this.options.hideAddress : this.defaultz.hideAddress;
|
||||||
},
|
},
|
||||||
forceRedirect() {
|
forceRedirect() {
|
||||||
return this.context.backUrl !== null;
|
return (!(this.context.backUrl === null || typeof this.context.backUrl === 'undefined'));
|
||||||
},
|
},
|
||||||
noAddressWithStickyActions() {
|
noAddressWithStickyActions() {
|
||||||
return !this.context.edit && !this.address.id && this.options.stickyActions;
|
return !this.context.edit && !this.address.id && this.options.stickyActions;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user