diff --git a/packages/gantt/src/components/links/links.component.ts b/packages/gantt/src/components/links/links.component.ts index 07a98dd5..d8610778 100644 --- a/packages/gantt/src/components/links/links.component.ts +++ b/packages/gantt/src/components/links/links.component.ts @@ -174,10 +174,20 @@ export class GanttLinksComponent implements OnInit, OnChanges, OnDestroy { let defaultColor: string = LinkColors.default; let activeColor: string = LinkColors.active; - if (link.type === GanttLinkType.fs && source.end.getTime() > target.start.getTime()) { + if (link.type === GanttLinkType.ff && source.end.getTime() > target.end.getTime()) { + defaultColor = LinkColors.blocked; + activeColor = LinkColors.blocked; + } else if (link.type === GanttLinkType.fs && source.end.getTime() > target.start.getTime()) { + defaultColor = LinkColors.blocked; + activeColor = LinkColors.blocked; + } else if (link.type === GanttLinkType.sf && source.start.getTime() > target.end.getTime()) { + defaultColor = LinkColors.blocked; + activeColor = LinkColors.blocked; + } else if (link.type === GanttLinkType.ss && source.start.getTime() > target.start.getTime()) { defaultColor = LinkColors.blocked; activeColor = LinkColors.blocked; } + if (link.color) { if (typeof link.color === 'string') { defaultColor = link.color;