[25344] Render parent clamps in their respective colors

[ci skip]
pull/5548/head
Oliver Günther 8 years ago committed by GitHub
parent 696ef8a2cc
commit 7f9a249a47
  1. 11
      frontend/app/components/wp-table/timeline/cell-renderer/timeline-cell-renderer.ts

@ -342,11 +342,12 @@ export class TimelineCellRenderer {
// Display the parent as clamp-style when it has children in the table
if (this.workPackageTimeline.inHierarchyMode &&
hasChildrenInTable(wp, this.workPackageTimeline.workPackageTable)) {
bar.style.borderLeft = "2px solid black";
bar.style.borderRight = "2px solid black";
bar.style.borderTop = "2px solid black";
bar.style.borderBottom = "none";
bar.style.background = "none";
bar.classList.add('-clamp-style');
bar.style.borderStyle = 'solid';
bar.style.borderWidth = '2px';
bar.style.borderColor = this.typeColor(wp);
bar.style.borderBottom = 'none';
bar.style.background = 'none';
}
}

Loading…
Cancel
Save