mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-23 06:24:03 +00:00
Merge branch 'dillon/34.8-jenkins-vapor' into vapor/staging
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 4.8 KiB |
+1
-3
@@ -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;
|
||||
|
||||
+1
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user