Skip to content

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

refresh timeline less often

Oliver Günther86c38858a6d9
diff --cc frontend/src/app/components/wp-table/timeline/container/wp-timeline-container.directive.ts
index 6acbe83ab8f,a6b509b0f11..0a193126bf9
--- 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
@@@ -124,19 -130,16 +130,16 @@@ export class WorkPackageTimelineTableCo
// Refresh on window resize events
window.addEventListener('wp-resize.timeline', () => this.refreshRequest.putValue(undefined));
- // Refresh timeline view after table rendered
- this.querySpace.tableRendered.values$()
- .pipe(
- takeUntil(this.querySpace.stopAllSubscriptions),
- filter(() => this.initialized)
- )
- .subscribe((orderedRows) => {
+ combineLatest([
- this.querySpace.rendered.values$(),
++ this.querySpace.tableRendered.values$(),
+ this.refreshRequest.changes$(),
+ this.wpTableTimeline.live$()
+ ]).pipe(
+ untilComponentDestroyed(this),
+ takeUntil(this.querySpace.stopAllSubscriptions),
+ filter(() => this.initialized && this.wpTableTimeline.isVisible)
+ )
+ .subscribe(([orderedRows, changes, timelineState]) => {
// Remember all visible rows in their order of appearance.
this.workPackageIdOrder = orderedRows.filter(row => !row.hidden);
this.refreshView();