Merge branch 'dillon/34.8-jenkins-vapor' into vapor/staging

This commit is contained in:
Dillon Ngo
2024-10-30 12:38:43 +08:00
3 changed files with 2 additions and 6 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

@@ -70,10 +70,8 @@ export default {
if (this.$refs.endDatePicker) {
const startDate = new Date(date.split('-').reverse().join('-'));
const adjustedEndDate = new Date(startDate);
// adjustedEndDate.setDate(startDate.getDate() + this.maxDays);
this.$refs.endDatePicker.setStartDate(adjustedEndDate);
}
// this.endDate = '';
this.isValidRange = false;
}
},
@@ -90,7 +88,7 @@ export default {
const end = new Date(this.endDate.split('-').reverse().join('-'));
const difference = Math.floor((end - start) / (1000 * 60 * 60 * 24));
this.isValidRange = difference >= 0 && difference <= 14;
this.isValidRange = difference >= 0 && difference <= this.maxDays;
return this.isValidRange;
}
return false;
@@ -78,10 +78,8 @@ export default {
if (this.$refs.endDatePicker) {
const startDate = new Date(date.split('-').reverse().join('-'));
const adjustedEndDate = new Date(startDate);
// adjustedEndDate.setDate(startDate.getDate() + this.maxDays);
this.$refs.endDatePicker.setStartDate(adjustedEndDate);
}
// this.endDate = '';
this.isValidRange = false;
}
},
@@ -100,7 +98,7 @@ export default {
const end = new Date(this.endDate.split('-').reverse().join('-'));
const difference = Math.floor((end - start) / (1000 * 60 * 60 * 24));
this.isValidRange = difference >= 0 && difference <= 14;
this.isValidRange = difference >= 0 && difference <= this.maxDays;
return this.isValidRange;
}
return false;