CSR-1137| Formatting

This commit is contained in:
Scott Kiener 2023-05-22 09:18:31 -04:00
parent 2e18e46907
commit 991e000c4e
6 changed files with 21 additions and 12 deletions

View file

@ -204,7 +204,7 @@ export default {
const todayDate = config.todayOverrideDateString const todayDate = config.todayOverrideDateString
? new Date(config.todayOverrideDateString) ? new Date(config.todayOverrideDateString)
: new Date(); : new Date();
let todayMonthIndex = todayDate.getMonth() + 1; let todayMonthIndex = todayDate.getMonth() + 1;
let todayYearNum = todayDate.getFullYear(); let todayYearNum = todayDate.getFullYear();
let currentMonthStart = new Date(todayYearNum, todayMonthIndex - 1, 1); let currentMonthStart = new Date(todayYearNum, todayMonthIndex - 1, 1);
@ -246,7 +246,7 @@ export default {
const response = config.customSelectableDatesCallback( const response = config.customSelectableDatesCallback(
initialViewStartDate, initialViewStartDate,
initialViewEndDate, initialViewEndDate,
store.getters.order.serviceLocation.appointmentType, store.getters.order.serviceLocation.appointmentType
); );
resolve(response); resolve(response);
}); });
@ -526,7 +526,7 @@ export default {
const moreSelectableDates = await this.customSelectableDatesCallback( const moreSelectableDates = await this.customSelectableDatesCallback(
monthStart, monthStart,
monthEnd, monthEnd,
this.$store.getters.order.serviceLocation.appointmentType, this.$store.getters.order.serviceLocation.appointmentType
); );
moreSelectableDates.days.forEach((selectableDate) => { moreSelectableDates.days.forEach((selectableDate) => {
const index = this.selectableDatesData.findIndex( const index = this.selectableDatesData.findIndex(

View file

@ -5,7 +5,7 @@
:groupName="groupName" :groupName="groupName"
buttonTypeString="listButtonHorizontal" buttonTypeString="listButtonHorizontal"
v-model="selectedValues" v-model="selectedValues"
:additionalButtonData="{additionalButtonStyling: 'listButtonHorizontalStrong'}" :additionalButtonData="{ additionalButtonStyling: 'listButtonHorizontalStrong' }"
isRequired /> isRequired />
</div> </div>
</template> </template>

View file

@ -257,7 +257,11 @@ export default {
// NEED TODO - WHAT ARE PAGE REQ'S FOR THIS PAGE? // NEED TODO - WHAT ARE PAGE REQ'S FOR THIS PAGE?
}, },
async getAvailableDatesMethod(startDate, endDate) { async getAvailableDatesMethod(startDate, endDate) {
const newShopTimeSlots = await getAvailableDates(startDate, endDate, this.appointmentType); const newShopTimeSlots = await getAvailableDates(
startDate,
endDate,
this.appointmentType
);
// ADD API CALL RESULTS TO EXISTING DATE DATA // ADD API CALL RESULTS TO EXISTING DATE DATA
this.selectableDatesData.days = this.selectableDatesData.days.concat( this.selectableDatesData.days = this.selectableDatesData.days.concat(
newShopTimeSlots.days newShopTimeSlots.days

View file

@ -136,11 +136,14 @@ export default {
return this.getCmsContent(this.dropoffCmsWidgetName, "SubheaderText"); return this.getCmsContent(this.dropoffCmsWidgetName, "SubheaderText");
}, },
inshopDurationText() { inshopDurationText() {
const inshopDurationTextWithoutTime = this.getCmsContent(this.cmsWidgetName, "SubheaderText"); const inshopDurationTextWithoutTime = this.getCmsContent(
this.cmsWidgetName,
"SubheaderText"
);
const inshopDurationTime = this.getDisplayTextForDurationLength( const inshopDurationTime = this.getDisplayTextForDurationLength(
this.estimatedServiceMinutesMinimum, this.estimatedServiceMinutesMinimum,
this.estimatedServiceMinutesMaximum this.estimatedServiceMinutesMaximum
); );
return `${inshopDurationTextWithoutTime} ${inshopDurationTime}`; return `${inshopDurationTextWithoutTime} ${inshopDurationTime}`;
}, },
durationTextBlockCopy() { durationTextBlockCopy() {

View file

@ -58,8 +58,8 @@ describe("list-button-horizontal.vue", () => {
mockData: { mockData: {
propsData: { propsData: {
additionalButtonData: { additionalButtonData: {
additionalButtonStyling: "listButtonHorizontalStrong" additionalButtonStyling: "listButtonHorizontalStrong",
} },
}, },
}, },
}); });

View file

@ -30,7 +30,9 @@ export default {
mixins: [inputButtonWrapperMixin], mixins: [inputButtonWrapperMixin],
computed: { computed: {
isStrongStyling() { isStrongStyling() {
return this.additionalButtonData?.additionalButtonStyling === "listButtonHorizontalStrong"; return (
this.additionalButtonData?.additionalButtonStyling === "listButtonHorizontalStrong"
);
}, },
}, },
components: { components: {