CASH-1230
CASH-1230 modified waitlist to display for mobile and for inshop when it should/shouldnt
This commit is contained in:
parent
0f5e19632e
commit
0d826f478e
2 changed files with 13 additions and 4 deletions
|
|
@ -1441,9 +1441,17 @@ export default {
|
|||
}
|
||||
},
|
||||
setDisplayWaitList() {
|
||||
const dateString = this.isMobileSelected
|
||||
? this.selectableDatesMobile?.days[0]?.date
|
||||
: this.selectableDatesInshop?.days[0]?.date;
|
||||
let dateString = null;
|
||||
if (this.appointmentType === AppointmentTypeStrings.MOBILE && this.selectableDatesMobile.days.length > 0) {
|
||||
dateString = this.selectableDatesMobile?.days[0]?.date;
|
||||
} else if (
|
||||
this.appointmentType === AppointmentTypeStrings.IN_SHOP ||
|
||||
this.appointmentType === AppointmentTypeStrings.DROP_OFF ||
|
||||
this.appointmentType === AppointmentTypeStrings.IN_SHOP_OR_DROP_OFF &&
|
||||
this.selectableDatesInshop.days.length > 0
|
||||
) {
|
||||
dateString = this.selectableDatesInshop?.days[0]?.date;
|
||||
}
|
||||
if (
|
||||
experimentMixin.methods.hasSettingEqualTo(
|
||||
experimentSettings.DISPLAY_WAITLIST,
|
||||
|
|
@ -1663,6 +1671,7 @@ export default {
|
|||
this.appointmentType = null;
|
||||
}
|
||||
this.selectedDate = this.getSelectedDate();
|
||||
this.setDisplayWaitList();
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
v-model="waitListRequested"
|
||||
@click="waitListChecked" />
|
||||
</div>
|
||||
<div v-if="waitListRequested" class="rounded waitlist-success" ref="waitlistSuccessMessage">
|
||||
<div v-if="waitListRequested && displayWaitList" class="rounded waitlist-success" ref="waitlistSuccessMessage">
|
||||
<img :src="waitListSuccessImage" class="success-image" />
|
||||
<span v-html="waitListSuccessText" class="success-text"></span>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue