[Library | new-theme]: dataProvider.component.ts & project.component.ts & resultLanding.component.ts: Small update on previous commit - Call detectChanges() method, after content is returned and processed, right after showLoading = false command.

This commit is contained in:
Konstantina Galouni 2022-09-21 15:39:57 +03:00
parent f888e1090d
commit 82cec11525
3 changed files with 2 additions and 3 deletions

View File

@ -340,7 +340,6 @@ export class DataProviderComponent {
} else {
this.subscriptions.push(this._dataproviderService.getDataproviderInfo(this.datasourceId, this.identifier, this.properties, this.typeQueryPathParam).subscribe(
data => {
this.cdr.detectChanges();
this.dataProviderInfo = data;
this.getProvenanceUrls();
this.datasourceId = this.dataProviderInfo.objIdentifier;
@ -367,6 +366,7 @@ export class DataProviderComponent {
}
this.showLoading = false;
this.cdr.detectChanges();
// if (this.dataProviderInfo.tabs != undefined && this.dataProviderInfo.tabs.length > 0) {
// this.activeTab = this.dataProviderInfo.tabs[0].name;

View File

@ -474,7 +474,6 @@ export class ProjectComponent {
}
actionsAfterGettingProjectInfo() {
this.cdr.detectChanges();
this.projectName = this.projectInfo.acronym;
if (this.projectName == undefined || this.projectName == '') {
this.projectName = this.projectInfo.title;
@ -521,6 +520,7 @@ export class ProjectComponent {
}
this.showLoading = false;
this.cdr.detectChanges();
}
public downloadCsvFile(url: string, filename: string) {

View File

@ -447,7 +447,6 @@ export class ResultLandingComponent {
this.hasAltMetrics = false;
this.subscriptions.push(this._resultLandingService.getResultLandingInfo(this.id, this.identifier, this.type, subjectsVocabulary, this.properties).subscribe(
data => {
this.cdr.detectChanges();
this.resultLandingInfo = data;
this.id = this.resultLandingInfo.objIdentifier;
//old