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,
|
||||
DAYS_OF_WEEK,
|
||||
} from "@/digital-components/date-picker/mixins/constants";
|
||||
import {
|
||||
AppointmentTypeStrings,
|
||||
PREMIUM_FEE_PART_TYPE,
|
||||
} from "@/constants/schedule-constants";
|
||||
import { AppointmentTypeStrings, PREMIUM_FEE_PART_TYPE } from "@/constants/schedule-constants";
|
||||
import {
|
||||
selectableDaysOptions,
|
||||
requiredParameter,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
import { storeActions } from "@/constants/store-actions";
|
||||
import baseMixin from "@/mixins/base-mixin.js";
|
||||
import {
|
||||
RouteCodeFlags,
|
||||
} from "@/constants/schedule-constants";
|
||||
import { RouteCodeFlags } from "@/constants/schedule-constants";
|
||||
|
||||
export async function getAlertReasons(ctu) {
|
||||
const alertReasons = await baseMixin.methods.dispatchStoreActionWithLogging(
|
||||
|
|
|
|||
|
|
@ -1580,11 +1580,15 @@ export default {
|
|||
this.selectedTimeSlotInfo = timeSlotObj;
|
||||
if (this.appointmentType !== AppointmentTypeStrings.MOBILE) {
|
||||
// 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) {
|
||||
return (isDropOffRouteCode(routeCode)) ? AppointmentTypeStrings.DROP_OFF : AppointmentTypeStrings.IN_SHOP;
|
||||
return isDropOffRouteCode(routeCode)
|
||||
? AppointmentTypeStrings.DROP_OFF
|
||||
: AppointmentTypeStrings.IN_SHOP;
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
|
|
@ -1624,11 +1628,12 @@ export default {
|
|||
} else {
|
||||
if (this.selectedTimeSlotInfo?.timeSlot?.routeCode) {
|
||||
// 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 {
|
||||
this.appointmentType = AppointmentTypeStrings.IN_SHOP_OR_DROP_OFF;
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue