From c1a39d8ab828c63606cccbcac2c04d5883e84a48 Mon Sep 17 00:00:00 2001 From: Dennis Sterzenbach Date: Tue, 10 May 2022 11:23:05 +0200 Subject: [PATCH] feat: make showWeekScale activate week number majorLabels for day scale --- lib/timeline/TimeStep.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeline/TimeStep.js b/lib/timeline/TimeStep.js index e219fc83e8..faac1d3cdf 100644 --- a/lib/timeline/TimeStep.js +++ b/lib/timeline/TimeStep.js @@ -524,7 +524,7 @@ class TimeStep { return (date.hours() == 0); case 'weekday': // intentional fall through case 'day': - return (date.date() == 1); + return this.options.showWeekScale ? (date.day() == 1) : (date.date() == 1); case 'week': return (date.date() == 1); case 'month':