CSR-2370: add new getter var to use in CMS for payment-method subheader logic
This commit is contained in:
parent
a1c9d904c4
commit
3028ca7883
2 changed files with 12 additions and 2 deletions
|
|
@ -344,7 +344,9 @@ export default {
|
|||
}
|
||||
if (this.AppointmentType == AppointmentTypeStrings.DROP_OFF) {
|
||||
if (
|
||||
this.submittedOrder?.schedule?.routeCode.includes(RouteCodeFlags.OVERNIGHT_DROP_OFF)
|
||||
this.submittedOrder?.schedule?.routeCode.includes(
|
||||
RouteCodeFlags.OVERNIGHT_DROP_OFF
|
||||
)
|
||||
) {
|
||||
return `Drop off before 5:30 PM`;
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -939,7 +939,7 @@ export const getters = {
|
|||
.reduce((r, c) => Object.assign(r, c), {}) ?? {},
|
||||
|
||||
isVerifiedAndDeductibleZeroConfirmed: (state) => {
|
||||
// used as a CMS variable on /payment-method, needed for FunnelSubHeaderWidget on cart pages
|
||||
// used in CMS on /payment-method in Header Sub Text, for FunnelSubHeaderWidget on cart pages
|
||||
if (
|
||||
state.order.policy.currentDeductible === 0 &&
|
||||
getters.coverageIsVerified(state) &&
|
||||
|
|
@ -949,6 +949,14 @@ export const getters = {
|
|||
}
|
||||
return false;
|
||||
},
|
||||
isItacOrNoComp: (state) => {
|
||||
// used in CMS on /payment-method in Header Sub Text, for FunnelSubHeaderWidget on cart pages
|
||||
if (state.order.policy.isNoComp || state.order.policy.isItac) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
requiresVerifiedRedirecting: (state) => {
|
||||
return state.order?.referralNumber?.length === 6;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue