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 unnecessary imports
bsatarnejadbd1a52234cdc
diff --git a/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/timeline-cell-renderer.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/timeline-cell-renderer.tsindex 8b350fd684e..5fe6d7d9e54 100644--- a/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/timeline-cell-renderer.ts+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/timeline-cell-renderer.ts@@ -21,7 +21,6 @@ import {timelineMarkerSelectionStartClass,} from '../wp-timeline';import Moment = moment.Moment;-import { DayResourceService } from 'core-app/core/state/days/day.service';export interface CellDateMovement {// Target values to move work package to@@ -52,8 +51,6 @@ export class TimelineCellRenderer {@InjectField() weekdayService:WeekdayService;- @InjectField() dayService:DayResourceService;-@InjectField() schemaCache:SchemaCacheService;@InjectField() I18n!:I18nService;diff --git a/frontend/src/app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.directive.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.directive.tsindex 0d4acf175e5..58e7731a6a8 100644--- a/frontend/src/app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.directive.ts+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.directive.ts@@ -147,6 +147,13 @@ export class WorkPackageTimelineTableController extends UntilDestroyedMixin implngAfterViewInit() {this.$element = jQuery(this.elementRef.nativeElement);+ const scrollBar = document.querySelector('.work-packages-tabletimeline--timeline-side');+ if (scrollBar) {+ scrollBar.addEventListener("scroll", async () => {+ await this.requireNonWorkingDays(this.getFirstDayInViewport().format('YYYY-MM-DD'), this.getLastDayInViewport().format('YYYY-MM-DD'));+ })+ }+this.text = {selectionMode: this.I18n.t('js.timelines.selection_mode.notification'),};@@ -236,7 +243,7 @@ export class WorkPackageTimelineTableController extends UntilDestroyedMixin implthis.calculateViewParams(this._viewParameters);- await this.requireNonWorkingDays(this._viewParameters.visibleViewportAtCalculationTime[0].format('YYYY-MM-DD'), this._viewParameters.visibleViewportAtCalculationTime[1].format('YYYY-MM-DD'));+ await this.requireNonWorkingDays(this.getFirstDayInViewport().format('YYYY-MM-DD'), this.getLastDayInViewport().format('YYYY-MM-DD'));// Update all cellsthis.cellsRenderer.refreshAllCells();diff --git a/frontend/src/app/features/work-packages/components/wp-table/timeline/grid/wp-timeline-grid.directive.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/grid/wp-timeline-grid.directive.tsindex 6454cd69070..4cd244e7b38 100644--- a/frontend/src/app/features/work-packages/components/wp-table/timeline/grid/wp-timeline-grid.directive.ts+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/grid/wp-timeline-grid.directive.ts@@ -42,7 +42,6 @@ import {} from '../wp-timeline';import { WeekdayService } from 'core-app/core/days/weekday.service';import Moment = moment.Moment;-import { DayResourceService } from 'core-app/core/state/days/day.service';@Component({selector: 'wp-timeline-grid',@@ -57,7 +56,6 @@ export class WorkPackageTableTimelineGrid implements AfterViewInit {private elementRef:ElementRef,public wpTimeline:WorkPackageTimelineTableController,private weekdaysService:WeekdayService,- private daysService:DayResourceService,) {}ngAfterViewInit():void {