CASH-845: prettier changes
This commit is contained in:
parent
c1220f9d00
commit
e734d94df9
3 changed files with 11 additions and 11 deletions
|
|
@ -166,10 +166,7 @@ import {
|
||||||
MONTHS_OF_YEAR,
|
MONTHS_OF_YEAR,
|
||||||
DAYS_OF_WEEK,
|
DAYS_OF_WEEK,
|
||||||
} from "@/digital-components/date-picker/mixins/constants";
|
} from "@/digital-components/date-picker/mixins/constants";
|
||||||
import {
|
import { AppointmentTypeStrings, PREMIUM_FEE_PART_TYPE } from "@/constants/schedule-constants";
|
||||||
AppointmentTypeStrings,
|
|
||||||
PREMIUM_FEE_PART_TYPE,
|
|
||||||
} from "@/constants/schedule-constants";
|
|
||||||
import {
|
import {
|
||||||
selectableDaysOptions,
|
selectableDaysOptions,
|
||||||
requiredParameter,
|
requiredParameter,
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
import { storeActions } from "@/constants/store-actions";
|
import { storeActions } from "@/constants/store-actions";
|
||||||
import baseMixin from "@/mixins/base-mixin.js";
|
import baseMixin from "@/mixins/base-mixin.js";
|
||||||
import {
|
import { RouteCodeFlags } from "@/constants/schedule-constants";
|
||||||
RouteCodeFlags,
|
|
||||||
} from "@/constants/schedule-constants";
|
|
||||||
|
|
||||||
export async function getAlertReasons(ctu) {
|
export async function getAlertReasons(ctu) {
|
||||||
const alertReasons = await baseMixin.methods.dispatchStoreActionWithLogging(
|
const alertReasons = await baseMixin.methods.dispatchStoreActionWithLogging(
|
||||||
|
|
|
||||||
|
|
@ -1580,11 +1580,15 @@ export default {
|
||||||
this.selectedTimeSlotInfo = timeSlotObj;
|
this.selectedTimeSlotInfo = timeSlotObj;
|
||||||
if (this.appointmentType !== AppointmentTypeStrings.MOBILE) {
|
if (this.appointmentType !== AppointmentTypeStrings.MOBILE) {
|
||||||
// update apptType based on routeCode to determine if it should be dropoff or inshop
|
// update apptType based on routeCode to determine if it should be dropoff or inshop
|
||||||
this.appointmentType = this.getInShopOrDropOffApptType(timeSlotObj.timeSlot.routeCode);
|
this.appointmentType = this.getInShopOrDropOffApptType(
|
||||||
|
timeSlotObj.timeSlot.routeCode
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getInShopOrDropOffApptType(routeCode) {
|
getInShopOrDropOffApptType(routeCode) {
|
||||||
return (isDropOffRouteCode(routeCode)) ? AppointmentTypeStrings.DROP_OFF : AppointmentTypeStrings.IN_SHOP;
|
return isDropOffRouteCode(routeCode)
|
||||||
|
? AppointmentTypeStrings.DROP_OFF
|
||||||
|
: AppointmentTypeStrings.IN_SHOP;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
@ -1624,11 +1628,12 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
if (this.selectedTimeSlotInfo?.timeSlot?.routeCode) {
|
if (this.selectedTimeSlotInfo?.timeSlot?.routeCode) {
|
||||||
// update appointmentType based on routeCode to determine if it should be dropoff or inshop
|
// update appointmentType based on routeCode to determine if it should be dropoff or inshop
|
||||||
this.appointmentType = this.getInShopOrDropOffApptType(this.selectedTimeSlotInfo.timeSlot.routeCode);
|
this.appointmentType = this.getInShopOrDropOffApptType(
|
||||||
|
this.selectedTimeSlotInfo.timeSlot.routeCode
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
this.appointmentType = AppointmentTypeStrings.IN_SHOP_OR_DROP_OFF;
|
this.appointmentType = AppointmentTypeStrings.IN_SHOP_OR_DROP_OFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue