CSR-1137| Formatting
This commit is contained in:
parent
2e18e46907
commit
991e000c4e
6 changed files with 21 additions and 12 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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() {
|
||||||
|
|
|
||||||
|
|
@ -58,8 +58,8 @@ describe("list-button-horizontal.vue", () => {
|
||||||
mockData: {
|
mockData: {
|
||||||
propsData: {
|
propsData: {
|
||||||
additionalButtonData: {
|
additionalButtonData: {
|
||||||
additionalButtonStyling: "listButtonHorizontalStrong"
|
additionalButtonStyling: "listButtonHorizontalStrong",
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue