conditionally show forward button, navigation updates
This commit is contained in:
parent
93e502ada8
commit
bb31f47fe8
1 changed files with 7 additions and 9 deletions
|
|
@ -54,6 +54,7 @@
|
|||
:value="deductibleBoxValue" />
|
||||
</div>
|
||||
<siteFooter
|
||||
v-if="carrierUrl"
|
||||
ref="siteFooter"
|
||||
cmsWidgetName="SiteFooterWidget"
|
||||
:isForwardActionDisabled="!meta.valid"
|
||||
|
|
@ -168,24 +169,21 @@ export default {
|
|||
return this.mainStore.issConfig.clientName;
|
||||
},
|
||||
carrierUrl() {
|
||||
const url = this.mainStore.issConfig.successReturnURL;
|
||||
console.log(url);
|
||||
return url;
|
||||
return this.mainStore.issConfig.successReturnURL;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$refs.siteFooter.updateButtonText(`Go back to ${this.carrierName}`);
|
||||
if (this.carrierUrl) {
|
||||
this.$refs.siteFooter.updateButtonText(`Go back to ${this.carrierName}`);
|
||||
}
|
||||
},
|
||||
methods:
|
||||
{
|
||||
async forwardButtonAction() {
|
||||
window.location.href = this.carrierUrl;
|
||||
this.navigateForward();
|
||||
},
|
||||
navigateForward() {
|
||||
this.$router.navigate(
|
||||
this.navigationScenarios.CLICKED_FORWARD,
|
||||
this.$route
|
||||
);
|
||||
window.location.href = this.carrierUrl;
|
||||
},
|
||||
getCustomValueFromString(str) {
|
||||
switch (str) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue