conditionally show forward button, navigation updates

This commit is contained in:
Katie Kroell 2024-02-01 14:01:57 -05:00
parent 93e502ada8
commit bb31f47fe8

View file

@ -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) {