remove some console log
This commit is contained in:
parent
6b9ed59cfc
commit
50fa11a2b5
3 changed files with 1 additions and 16 deletions
|
|
@ -171,10 +171,6 @@ export default {
|
||||||
const { modelValue } = deepClone(props);
|
const { modelValue } = deepClone(props);
|
||||||
const initialValue = modelValue;
|
const initialValue = modelValue;
|
||||||
|
|
||||||
console.log('DatePicker setup called with modelValue: ');
|
|
||||||
console.log(modelValue);
|
|
||||||
console.log(props.validationRules);
|
|
||||||
|
|
||||||
const fieldOptions = {
|
const fieldOptions = {
|
||||||
value: modelValue,
|
value: modelValue,
|
||||||
initialValue
|
initialValue
|
||||||
|
|
@ -459,8 +455,6 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async setCalendarData(config = {}) {
|
async setCalendarData(config = {}) {
|
||||||
console.log('DatePicker: setCalendarData called:');
|
|
||||||
console.log(config);
|
|
||||||
config.initialShopTimeSlotsResponse.days.forEach((selectableDate) => {
|
config.initialShopTimeSlotsResponse.days.forEach((selectableDate) => {
|
||||||
const dateObjectToPush = {
|
const dateObjectToPush = {
|
||||||
date: selectableDate.date,
|
date: selectableDate.date,
|
||||||
|
|
|
||||||
|
|
@ -278,8 +278,6 @@ export default {
|
||||||
return useMainStore().order.serviceLocation.appointmentType;
|
return useMainStore().order.serviceLocation.appointmentType;
|
||||||
},
|
},
|
||||||
isFormValid() {
|
isFormValid() {
|
||||||
console.log('isFormValid called');
|
|
||||||
console.log(this.selectedTimeSlotInfo);
|
|
||||||
const hasTimeSlotSelected = this.selectedTimeSlotInfo?.id != null;
|
const hasTimeSlotSelected = this.selectedTimeSlotInfo?.id != null;
|
||||||
return hasTimeSlotSelected;
|
return hasTimeSlotSelected;
|
||||||
},
|
},
|
||||||
|
|
@ -351,25 +349,20 @@ export default {
|
||||||
return selectedTimeSlotInfo;
|
return selectedTimeSlotInfo;
|
||||||
},
|
},
|
||||||
dateSelectedFromPicker(date) {
|
dateSelectedFromPicker(date) {
|
||||||
console.log('schedule-page: dateSelectedFromPicker called');
|
|
||||||
console.log(date);
|
|
||||||
this.selectedDate = date;
|
this.selectedDate = date;
|
||||||
this.showDatePickerError = false;
|
this.showDatePickerError = false;
|
||||||
},
|
},
|
||||||
timeSlotSelectedFromPicker(timeSlot) {
|
timeSlotSelectedFromPicker(timeSlot) {
|
||||||
console.log('schedule-page: timeSlotSelectedFromPicker called');
|
|
||||||
console.log(timeSlot);
|
|
||||||
this.selectedTimeSlotInfo = timeSlot;
|
this.selectedTimeSlotInfo = timeSlot;
|
||||||
this.showDatePickerError = false;
|
this.showDatePickerError = false;
|
||||||
},
|
},
|
||||||
forwardButtonAction() {
|
forwardButtonAction() {
|
||||||
console.log('forwardButtonAction called');
|
|
||||||
if (!this.isFormValid) {
|
if (!this.isFormValid) {
|
||||||
this.showDatePickerError = true;
|
this.showDatePickerError = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.mainStore.saveSchedule(this.selectedTimeSlotInfo.timeSlot);
|
|
||||||
|
|
||||||
|
this.mainStore.saveSchedule(this.selectedTimeSlotInfo.timeSlot);
|
||||||
this.$router.navigate(
|
this.$router.navigate(
|
||||||
this.navigationScenarios.CLICKED_FORWARD,
|
this.navigationScenarios.CLICKED_FORWARD,
|
||||||
this.$route
|
this.$route
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,6 @@ const router = createRouter({
|
||||||
router.beforeEach(async (to, from) => {
|
router.beforeEach(async (to, from) => {
|
||||||
const fromQueryPage = from.query?.issPage;
|
const fromQueryPage = from.query?.issPage;
|
||||||
if (fromQueryPage === undefined) {
|
if (fromQueryPage === undefined) {
|
||||||
console.log('router.beforeEach: showing loading modal');
|
|
||||||
showIssLoadingModal(true);
|
showIssLoadingModal(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -289,7 +288,6 @@ function navigate(
|
||||||
}
|
}
|
||||||
|
|
||||||
if (forceSpinner) {
|
if (forceSpinner) {
|
||||||
console.log('navigate: showing loading modal');
|
|
||||||
showIssLoadingModal(true);
|
showIssLoadingModal(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue