CASH-464: fix premium and mobile appointment time slot button styling
This commit is contained in:
parent
7a7428f087
commit
b8545709ba
3 changed files with 10 additions and 1 deletions
|
|
@ -1265,6 +1265,11 @@ export default {
|
||||||
flex: 0 0 calc(50% - 0.25rem);
|
flex: 0 0 calc(50% - 0.25rem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
:deep(.button-question.is-mobile-appointment) {
|
||||||
|
.button-inner-wrapper > div {
|
||||||
|
flex: 0 0 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-link {
|
.btn-link {
|
||||||
|
|
|
||||||
|
|
@ -257,7 +257,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
// Check to see if pre-selected date should have pricing by day upcharge
|
// Check to see if pre-selected date should have pricing by day upcharge
|
||||||
if (showPricingByDay) {
|
if (showPricingByDay) {
|
||||||
// is this preSelectedDate a premium day?
|
// is this preSelectedDate a higher priced pricingByDay day?
|
||||||
const dayIndex = convertDateStringToDate(preSelectedSlot?.date).getDay();
|
const dayIndex = convertDateStringToDate(preSelectedSlot?.date).getDay();
|
||||||
const dayObject = DAYS_OF_WEEK[dayIndex];
|
const dayObject = DAYS_OF_WEEK[dayIndex];
|
||||||
if (dayObject.isPricingByDayUpchargeDay) {
|
if (dayObject.isPricingByDayUpchargeDay) {
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
buttonTypeString="timeSlotModalListButton"
|
buttonTypeString="timeSlotModalListButton"
|
||||||
:buttonTypeObject="timeSlotModalListButton"
|
:buttonTypeObject="timeSlotModalListButton"
|
||||||
class="mt-4"
|
class="mt-4"
|
||||||
|
:class="isMobileAppointment ? 'is-mobile-appointment' : ''"
|
||||||
:answers="availableTimeSlots"
|
:answers="availableTimeSlots"
|
||||||
groupName="chooseTimeSlot"
|
groupName="chooseTimeSlot"
|
||||||
textPosition="text-center"
|
textPosition="text-center"
|
||||||
|
|
@ -353,6 +354,9 @@ export default {
|
||||||
waitListSuccessText() {
|
waitListSuccessText() {
|
||||||
return this.getCmsContent("WaitListSuccessWidget", "BodyText");
|
return this.getCmsContent("WaitListSuccessWidget", "BodyText");
|
||||||
},
|
},
|
||||||
|
isMobileAppointment() {
|
||||||
|
return this.appointmentType === AppointmentTypeStrings.MOBILE;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async setSelectedTimeSlot() {
|
async setSelectedTimeSlot() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue