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() {
|
setDisplayWaitList() {
|
||||||
const dateString = this.isMobileSelected
|
let dateString = null;
|
||||||
? this.selectableDatesMobile?.days[0]?.date
|
if (this.appointmentType === AppointmentTypeStrings.MOBILE && this.selectableDatesMobile.days.length > 0) {
|
||||||
: this.selectableDatesInshop?.days[0]?.date;
|
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 (
|
if (
|
||||||
experimentMixin.methods.hasSettingEqualTo(
|
experimentMixin.methods.hasSettingEqualTo(
|
||||||
experimentSettings.DISPLAY_WAITLIST,
|
experimentSettings.DISPLAY_WAITLIST,
|
||||||
|
|
@ -1663,6 +1671,7 @@ export default {
|
||||||
this.appointmentType = null;
|
this.appointmentType = null;
|
||||||
}
|
}
|
||||||
this.selectedDate = this.getSelectedDate();
|
this.selectedDate = this.getSelectedDate();
|
||||||
|
this.setDisplayWaitList();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
v-model="waitListRequested"
|
v-model="waitListRequested"
|
||||||
@click="waitListChecked" />
|
@click="waitListChecked" />
|
||||||
</div>
|
</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" />
|
<img :src="waitListSuccessImage" class="success-image" />
|
||||||
<span v-html="waitListSuccessText" class="success-text"></span>
|
<span v-html="waitListSuccessText" class="success-text"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue