This commit is contained in:
Bryan Mauger 2024-06-19 16:30:31 -04:00
parent e658bdb9bf
commit b97833d3bd

View file

@ -55,9 +55,12 @@
justifyText="left" />
<hr class="my-5" />
<div class="d-flex flex-row checkbox-group">
<checkboxQuestion
class="mb-5"
cmsWidgetName="RecalUnderstandCopyWidget" />
<checkboxQuestion
class="mb-5"
v-model="isRecalAckOptIn" />
<textBlock
cmsWidgetName="RecalConfirmationWidget"
justifyText="left" />
</div>
</div>
@ -111,7 +114,7 @@ import { storeActions } from "@/constants/store-actions";
import store from "@/store";
import { fetchCmsContentForPage,
doesCopyContainRouterLink,
getRouterLinkRouteFromCopy, }
getRouterLinkRouteFromCopy }
from "@/helpers/cms-content-helper";
import { paymentMethods } from "@/constants/payment-method-constants";
import { experimentSettings } from "@/constants/experiments";
@ -335,6 +338,7 @@ export default {
availableVaps: [],
paymentMethodInternalModel: this.getPaymentMethodFromStore(),
inactivePromos: this.getInactivePromosFromStore(),
isRecalAckOptIn: this.getIsRecalAckOptInFromStore(),
};
},
methods: {
@ -404,6 +408,9 @@ export default {
return serviceLocationReqs && isInsuranceSet && scheduleReqs && customerReqs;
},
getIsRecalAckOptInFromStore() {
return store.getters.order.customer.isRecalAckOptIn;
},
getPaymentMethodFromStore() {
const piaType = store.getters.order.payment.piaType;
const isPia = store.getters.order.payment.isPia && !!piaType;