OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Remove cyclic dependency in timeline
Oliver Güntherd7f3222e8679
diff --git a/frontend/src/app/components/wp-table/timeline/container/wp-timeline-container.directive.ts b/frontend/src/app/components/wp-table/timeline/container/wp-timeline-container.directive.tsindex 3b260fec35e..82e8a82fbd6 100644--- a/frontend/src/app/components/wp-table/timeline/container/wp-timeline-container.directive.ts+++ b/frontend/src/app/components/wp-table/timeline/container/wp-timeline-container.directive.ts@@ -39,7 +39,7 @@ import {calculateDaySpan,getPixelPerDayForZoomLevel,requiredPixelMarginLeft,- timelineElementCssClass,+ timelineElementCssClass, timelineHeaderSelector,timelineMarkerSelectionStartClass,TimelineViewParameters,zoomLevelOrder@@ -50,7 +50,6 @@ import {WorkPackageTimelineCellsRenderer} from "core-components/wp-table/timelinimport {States} from "core-components/states.service";import {WorkPackagesTableController} from "core-components/wp-table/wp-table.directive";import {WorkPackageViewTimelineService} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";-import {HalResourceNotificationService} from "core-app/modules/hal/services/hal-resource-notification.service";import {WorkPackageRelationsService} from "core-components/wp-relations/wp-relations.service";import {WorkPackageViewHierarchiesService} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";import {WorkPackageTimelineState} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-table-timeline";@@ -60,7 +59,6 @@ import {debugLog, timeOutput} from "core-app/helpers/debug_output";import {RenderedWorkPackage} from "core-app/modules/work_packages/render-info/rendered-work-package.type";import {HalEventsService} from "core-app/modules/hal/services/hal-events.service";import {WorkPackageNotificationService} from "core-app/modules/work_packages/notifications/work-package-notification.service";-import {timelineHeaderSelector} from "core-components/wp-table/timeline/header/wp-timeline-header.directive";@Component({selector: 'wp-timeline-container',diff --git a/frontend/src/app/components/wp-table/timeline/header/wp-timeline-header.directive.ts b/frontend/src/app/components/wp-table/timeline/header/wp-timeline-header.directive.tsindex e4153343ff2..21deb89ac2d 100644--- a/frontend/src/app/components/wp-table/timeline/header/wp-timeline-header.directive.ts+++ b/frontend/src/app/components/wp-table/timeline/header/wp-timeline-header.directive.ts@@ -30,14 +30,16 @@ import {Component, ElementRef, OnInit} from '@angular/core';import {TimelineZoomLevel} from 'core-app/modules/hal/resources/query-resource';import {WorkPackageTimelineTableController} from 'core-components/wp-table/timeline/container/wp-timeline-container.directive';import * as moment from 'moment';-import {calculatePositionValueForDayCount, getTimeSlicesForHeader, TimelineViewParameters} from '../wp-timeline';-import Moment = moment.Moment;+import {+ calculatePositionValueForDayCount,+ getTimeSlicesForHeader,+ timelineHeaderCSSClass,+ timelineHeaderSelector,+ TimelineViewParameters+} from '../wp-timeline';import {I18nService} from "core-app/modules/common/i18n/i18n.service";import {WorkPackageViewTimelineService} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";---export const timelineHeaderCSSClass = 'wp-timeline--header-element';-export const timelineHeaderSelector = 'wp-timeline-header';+import Moment = moment.Moment;@Component({selector: timelineHeaderSelector,diff --git a/frontend/src/app/components/wp-table/timeline/wp-timeline.ts b/frontend/src/app/components/wp-table/timeline/wp-timeline.tsindex e61dc7a42f4..12b45d5467d 100644--- a/frontend/src/app/components/wp-table/timeline/wp-timeline.ts+++ b/frontend/src/app/components/wp-table/timeline/wp-timeline.ts@@ -37,6 +37,8 @@ export const timelineElementCssClass = 'timeline-element';export const timelineBackgroundElementClass = 'timeline-element--bg';export const timelineGridElementCssClass = 'wp-timeline--grid-element';export const timelineMarkerSelectionStartClass = 'selection-start';+export const timelineHeaderCSSClass = 'wp-timeline--header-element';+export const timelineHeaderSelector = 'wp-timeline-header';/***