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
Fix loadingIndicator in wpList component
Oliver Güntherfbb6efaf683a
diff --git a/frontend/src/app/modules/work_packages/routing/wp-list/wp-list.component.ts b/frontend/src/app/modules/work_packages/routing/wp-list/wp-list.component.tsindex f29c0fa6e50..d980abf9d87 100644--- a/frontend/src/app/modules/work_packages/routing/wp-list/wp-list.component.ts+++ b/frontend/src/app/modules/work_packages/routing/wp-list/wp-list.component.ts@@ -101,11 +101,8 @@ export class WorkPackagesListComponent extends WorkPackagesViewBase implements Othis.hasQueryProps = !!this.$state.params.query_props;// If the query was loaded, reload invisibly- if (this.querySpace.initialized.hasValue()) {- this.refresh();- } else {- this.loadCurrentQuery();- }+ const isFirstLoad = !this.querySpace.initialized.hasValue();+ this.refresh(isFirstLoad, isFirstLoad);// Load query on URL transitionsthis.updateQueryOnParamsChanges();@@ -199,7 +196,7 @@ export class WorkPackagesListComponent extends WorkPackagesViewBase implements Olet promise:Promise<unknown>;if (firstPage) {- promise = this.loadCurrentQuery();+ promise = this.wpListService.loadCurrentQueryFromParams(this.projectIdentifier);} else {promise = this.wpListService.reloadCurrentResultsList();}@@ -207,7 +204,7 @@ export class WorkPackagesListComponent extends WorkPackagesViewBase implements Oif (visibly) {this.loadingIndicator = promise.then(() => {if (this.wpTableTimeline.isVisible) {- return this.querySpace.timelineRendered.toPromise();+ return this.querySpace.timelineRendered.pipe(take(1)).toPromise();} else {return this.querySpace.tableRendered.valuesPromise() as Promise<unknown>;}@@ -253,7 +250,7 @@ export class WorkPackagesListComponent extends WorkPackagesViewBase implements Othis.wpListChecksumService.executeIfOutdated(newId,newChecksum,- () => this.loadCurrentQuery());+ () => this.refresh(true, true));});}@@ -273,9 +270,4 @@ export class WorkPackagesListComponent extends WorkPackagesViewBase implements Othis.loadingIndicatorService.table.promise = promise;}- protected loadCurrentQuery():Promise<unknown> {- return this.loadingIndicator =- this.wpListService- .loadCurrentQueryFromParams(this.projectIdentifier);- }}