Fire footer text update on page load

This commit is contained in:
Chloe Herd 2023-11-02 15:43:57 -04:00
parent b2b5e4ff6a
commit f07740a688

View file

@ -186,6 +186,8 @@ export default {
vm.setCmsContent(resultMap.cmsContent); vm.setCmsContent(resultMap.cmsContent);
vm.availableLineItems = taxedAvailableLineItems; vm.availableLineItems = taxedAvailableLineItems;
vm.lineItems = lineItems; vm.lineItems = lineItems;
vm.updateFooterButtonText(vm.customCtaCopy);
}); });
}, },
data() { data() {
@ -261,6 +263,9 @@ export default {
return paymentMethods.LATER; return paymentMethods.LATER;
} }
}, },
updateFooterButtonText(newValue) {
this.$refs.navbar.updateButtonText(newValue);
},
backButtonAction() { backButtonAction() {
this.$router.navigateWithoutSaving(this.navigationScenarios.CLICKED_BACK, this.$route); this.$router.navigateWithoutSaving(this.navigationScenarios.CLICKED_BACK, this.$route);
}, },
@ -362,7 +367,7 @@ export default {
}, },
watch: { watch: {
customCtaCopy(newValue) { customCtaCopy(newValue) {
this.$refs.navbar.updateButtonText(newValue); this.updateFooterButtonText(newValue);
}, },
}, },
components: { components: {