refactor(ganttDb): separate out the inclusive end date toggle

This commit is contained in:
Jason Würtz 2019-07-07 16:27:28 -03:00
parent ee766ec88e
commit 660e0f3d8b
1 changed files with 11 additions and 2 deletions

View File

@ -37,9 +37,16 @@ export const getAxisFormat = function () {
return axisFormat
}
export const setDateFormat = function (txt, inclusive) {
export const setDateFormat = function (txt) {
dateFormat = txt
inclusiveEndDates = inclusive || false // make sure it's not undefined
}
export const enableInclusiveEndDates = function () {
inclusiveEndDates = true
}
export const endDatesAreInclusive = function () {
return inclusiveEndDates
}
export const getDateFormat = function () {
@ -518,6 +525,8 @@ export default {
clear,
setDateFormat,
getDateFormat,
enableInclusiveEndDates,
endDatesAreInclusive,
setAxisFormat,
getAxisFormat,
setTitle,