Update CTA when new method is selected

This commit is contained in:
Chloe Herd 2023-09-07 17:29:33 -04:00
parent 57e520d2c4
commit 2aec329c5c

View file

@ -8,6 +8,7 @@
<paymentMethodQuestion v-model="paymentMethod" />
<div class="fade-on-route-transition sub-container make-tall">
<funnel-footer
ref="funnelFooter"
cmsWidgetName="FunnelFooterWidget"
:isForwardActionDisabled="!meta.valid"
:isBackButtonHidden="shouldHideBackButton"
@ -80,6 +81,11 @@ export default {
}
},
},
watch: {
customCtaCopy(newValue) {
this.$refs.funnelFooter.updateButtonText(newValue);
},
},
components: {
funnelHeader,
funnelFooter,