Address: success message exception when redirection

This commit is contained in:
2021-09-22 13:05:48 +02:00
parent d6f6f49090
commit dbb9e6a663
2 changed files with 8 additions and 2 deletions

View File

@@ -9,6 +9,7 @@
</div>
<div v-if="flag.success" class="alert alert-success">
{{ $t(getSuccessText) }}
<span v-if="forceRedirect">{{ $t('wait_redirection') }}</span>
</div>
<div v-if="noAddressWithStickyActions" class="mt-5">
@@ -84,6 +85,10 @@ export default {
return (typeof this.options.hideAddress !== 'undefined') ?
this.options.hideAddress : this.defaultz.hideAddress;
},
forceRedirect() {
return (typeof this.options.forceRedirect !== 'undefined') ?
this.options.forceRedirect : this.defaultz.forceRedirect;
},
noAddressWithStickyActions() {
return !this.context.edit && !this.address.id && this.options.stickyActions;
}