From b504da25abea92adb71e1475216731c78979cb5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 27 Feb 2019 18:59:44 +0100 Subject: [PATCH] [25471] Draw empty due date until today in timeline https://community.openproject.com/wp/25471 --- .../wp-table/timeline/cells/timeline-cell-renderer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/components/wp-table/timeline/cells/timeline-cell-renderer.ts b/frontend/src/app/components/wp-table/timeline/cells/timeline-cell-renderer.ts index 7582dac403..36c5e4e051 100644 --- a/frontend/src/app/components/wp-table/timeline/cells/timeline-cell-renderer.ts +++ b/frontend/src/app/components/wp-table/timeline/cells/timeline-cell-renderer.ts @@ -219,7 +219,8 @@ export class TimelineCellRenderer { // only start date, fade out bar to the right if (_.isNaN(due.valueOf()) && !_.isNaN(start.valueOf())) { - due = start.clone(); + // Set due date to today + due = moment(); bar.style.backgroundImage = `linear-gradient(90deg, rgba(255,255,255,0) 0%, #F1F1F1 100%)`; }