Hide loading indicator for embedded query configuration when hidden

avoids the quick white flash for the loading promise

[ci skip]
pull/6303/head
Oliver Günther 7 years ago
parent b75e8998df
commit 3edf1d7bfe
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 3
      frontend/app/components/wp-table/embedded/wp-embedded-table.component.ts

@ -157,10 +157,12 @@ export class WorkPackageEmbeddedTableComponent implements OnInit, AfterViewInit,
}
public set loadingIndicator(promise:Promise<any>) {
if (this.configuration.tableVisible) {
this.loadingIndicatorService
.indicator(this.uniqueEmbeddedTableName)
.promise = promise;
}
}
private async loadQuery() {
@ -178,7 +180,6 @@ export class WorkPackageEmbeddedTableComponent implements OnInit, AfterViewInit,
)
.then((query:QueryResource) => this.initializeStates(query, query.results));
this.loadingIndicator = promise;
return promise;
}

Loading…
Cancel
Save