Merge remote-tracking branch 'origin/develop' into feature/CSR-1512
This commit is contained in:
commit
32363354f4
6 changed files with 23 additions and 19 deletions
|
|
@ -72,9 +72,9 @@ https://safelite.atlassian.net/wiki/spaces/DC/pages/76644418/Button+Question+Com
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
<div class="row form-test-error mt-1">
|
<div class="row form-test-error">
|
||||||
<error-message
|
<error-message
|
||||||
class="small"
|
class="small mt-1"
|
||||||
:name="formatString(groupName)"
|
:name="formatString(groupName)"
|
||||||
v-if="!suppressError"></error-message>
|
v-if="!suppressError"></error-message>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
v-for="month in months"
|
v-for="month in months"
|
||||||
:key="`${month.monthLabel}-${month.yearNum?.toString()}`"
|
:key="`${month.monthLabel}-${month.yearNum?.toString()}`"
|
||||||
:id="`${month.monthLabel}-${month.yearNum?.toString()}`"
|
:id="`${month.monthLabel}-${month.yearNum?.toString()}`"
|
||||||
class="calendar-grid-container position-relative"
|
class="calendar-grid-container"
|
||||||
:class="[
|
:class="[
|
||||||
hideSomeDaysForInitialView ? 'partial-month-initial-view' : '',
|
hideSomeDaysForInitialView ? 'partial-month-initial-view' : '',
|
||||||
month.monthClass,
|
month.monthClass,
|
||||||
|
|
@ -628,12 +628,16 @@ export default {
|
||||||
.date-picker {
|
.date-picker {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 100%;
|
flex-grow: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
fieldset {
|
fieldset {
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
height: 88%;
|
flex-grow: 1;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
padding-bottom: 6rem; // arbitrary amount to provide enough spacing for scroll animation
|
||||||
|
max-height: 21.25rem; // 340px... arbitrary amount to not push View More link out of view on iphones
|
||||||
}
|
}
|
||||||
.loader {
|
.loader {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
@ -648,6 +652,7 @@ export default {
|
||||||
.calendar-grid-container {
|
.calendar-grid-container {
|
||||||
margin: 0 auto 2rem auto;
|
margin: 0 auto 2rem auto;
|
||||||
max-width: 414px;
|
max-width: 414px;
|
||||||
|
position: relative;
|
||||||
transition: height ease 2s, opacity ease 2s;
|
transition: height ease 2s, opacity ease 2s;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(7, 1fr);
|
grid-template-columns: repeat(7, 1fr);
|
||||||
|
|
@ -864,21 +869,17 @@ export default {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
max-height: 0;
|
max-height: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
&.last-available-month:not(&.month-hidden) {
|
&.last-available-month:not(&.month-hidden) {
|
||||||
margin-bottom: 14rem;
|
margin-bottom: 14rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#bottom-spacer {
|
|
||||||
height: 20rem;
|
|
||||||
background: lightblue;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-link {
|
.btn-link {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
text-underline-offset: 4px;
|
text-underline-offset: 4px;
|
||||||
position: absolute;
|
flex-grow: 0;
|
||||||
top: 90%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.past {
|
.past {
|
||||||
|
|
|
||||||
|
|
@ -64,9 +64,9 @@
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<div v-show="errorMessage" class="row my-1 form-test-error">
|
<div v-show="errorMessage" class="row form-test-error">
|
||||||
<span
|
<span
|
||||||
class="d-inline-flex small mt-0"
|
class="d-inline-flex small my-1"
|
||||||
role="alert"
|
role="alert"
|
||||||
:class="[centerErrorMessage ? 'center-error-message' : '']"
|
:class="[centerErrorMessage ? 'center-error-message' : '']"
|
||||||
>{{ errorMessage }}</span
|
>{{ errorMessage }}</span
|
||||||
|
|
|
||||||
|
|
@ -183,10 +183,12 @@ export default {
|
||||||
},
|
},
|
||||||
disclaimerTextBlockCopy() {
|
disclaimerTextBlockCopy() {
|
||||||
if (this.appointmentType === AppointmentTypeStrings.DROP_OFF) {
|
if (this.appointmentType === AppointmentTypeStrings.DROP_OFF) {
|
||||||
if (this.isSameDay) {
|
if (this.selectedTimeSlotId?.includes(RouteCodeFlags.ALL_DAY_DROP_OFF)) {
|
||||||
return this.sameDayDropOffDisclaimerText;
|
if (this.isSameDay) {
|
||||||
} else if (this.selectedTimeSlotId?.includes(RouteCodeFlags.ALL_DAY_DROP_OFF)) {
|
return this.sameDayDropOffDisclaimerText;
|
||||||
return this.dropoffDisclaimerText;
|
} else {
|
||||||
|
return this.dropoffDisclaimerText;
|
||||||
|
}
|
||||||
} else if (this.selectedTimeSlotId?.includes(RouteCodeFlags.OVERNIGHT_DROP_OFF)) {
|
} else if (this.selectedTimeSlotId?.includes(RouteCodeFlags.OVERNIGHT_DROP_OFF)) {
|
||||||
return this.overnightDropOffDisclaimerText;
|
return this.overnightDropOffDisclaimerText;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@
|
||||||
:manualHeadline="AlertPerfectMatchInsuranceVerifiedHeader"
|
:manualHeadline="AlertPerfectMatchInsuranceVerifiedHeader"
|
||||||
:manualCopy="AlertPerfectMatchInsuranceVerifiedBody"
|
:manualCopy="AlertPerfectMatchInsuranceVerifiedBody"
|
||||||
v-model="customAlertData"
|
v-model="customAlertData"
|
||||||
v-if="vinPopulatedOnPageLoad && isInsuranceVerified"
|
v-if="vinPopulatedOnPageLoad && isInsuranceVerified && !displayInvalidZipAlert"
|
||||||
alertClass="alert-success" />
|
alertClass="alert-success" />
|
||||||
<alert
|
<alert
|
||||||
class="my-4"
|
class="my-4"
|
||||||
|
|
@ -106,7 +106,7 @@
|
||||||
:manualHeadline="AlertPerfectMatchInsuranceNotVerifiedHeader"
|
:manualHeadline="AlertPerfectMatchInsuranceNotVerifiedHeader"
|
||||||
:manualCopy="AlertPerfectMatchInsuranceNotVerifiedBody"
|
:manualCopy="AlertPerfectMatchInsuranceNotVerifiedBody"
|
||||||
v-model="customAlertData"
|
v-model="customAlertData"
|
||||||
v-if="vinPopulatedOnPageLoad && !isInsuranceVerified"
|
v-if="vinPopulatedOnPageLoad && !isInsuranceVerified && !displayInvalidZipAlert"
|
||||||
alertClass="alert-success" />
|
alertClass="alert-success" />
|
||||||
<funnelFooter
|
<funnelFooter
|
||||||
cmsWidgetName="FunnelFooterWidget"
|
cmsWidgetName="FunnelFooterWidget"
|
||||||
|
|
|
||||||
|
|
@ -2195,6 +2195,7 @@ async function resetScheduleIfUnavailable(context, order) {
|
||||||
// If you put any kind of time stamp on the date string with dashes, then it IS parsed as local time.
|
// If you put any kind of time stamp on the date string with dashes, then it IS parsed as local time.
|
||||||
var aptDate = new Date(order.schedule.date + "T00:00:00");
|
var aptDate = new Date(order.schedule.date + "T00:00:00");
|
||||||
var curDate = new Date();
|
var curDate = new Date();
|
||||||
|
curDate.setHours(0, 0, 0, 0);
|
||||||
|
|
||||||
// if appointment date is in the past, clear schedule
|
// if appointment date is in the past, clear schedule
|
||||||
if (aptDate.getTime() < curDate.getTime()) {
|
if (aptDate.getTime() < curDate.getTime()) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue