CSR-886: minor fixes (lets to consts)
This commit is contained in:
parent
6a6b37d5e7
commit
dbda73479d
1 changed files with 2 additions and 2 deletions
|
|
@ -254,7 +254,7 @@ export default {
|
||||||
const todayYearNum = todayDate.getFullYear();
|
const todayYearNum = todayDate.getFullYear();
|
||||||
// TODO - set up currentMonthStart if direction is PAST:
|
// TODO - set up currentMonthStart if direction is PAST:
|
||||||
// let currentMonthStart = new Date(todayYearNum, todayMonthIndex - 1, 1);
|
// let currentMonthStart = new Date(todayYearNum, todayMonthIndex - 1, 1);
|
||||||
let currentMonthEnd = new Date(todayYearNum, todayMonthIndex, 0);
|
const currentMonthEnd = new Date(todayYearNum, todayMonthIndex, 0);
|
||||||
|
|
||||||
let calendarViewDirection = "none";
|
let calendarViewDirection = "none";
|
||||||
if (config.selectableDatesSetting === "past") calendarViewDirection = "past";
|
if (config.selectableDatesSetting === "past") calendarViewDirection = "past";
|
||||||
|
|
@ -288,7 +288,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let myPromise = new Promise((resolve, reject) => {
|
const myPromise = new Promise((resolve, reject) => {
|
||||||
const response = config.customSelectableDatesCallback(
|
const response = config.customSelectableDatesCallback(
|
||||||
initialViewStartDate.toISOString().split("T")[0],
|
initialViewStartDate.toISOString().split("T")[0],
|
||||||
initialViewEndDate.toISOString().split("T")[0],
|
initialViewEndDate.toISOString().split("T")[0],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue