[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:
parent
f888e1090d
commit
82cec11525
|
@ -340,7 +340,6 @@ export class DataProviderComponent {
|
||||||
} else {
|
} else {
|
||||||
this.subscriptions.push(this._dataproviderService.getDataproviderInfo(this.datasourceId, this.identifier, this.properties, this.typeQueryPathParam).subscribe(
|
this.subscriptions.push(this._dataproviderService.getDataproviderInfo(this.datasourceId, this.identifier, this.properties, this.typeQueryPathParam).subscribe(
|
||||||
data => {
|
data => {
|
||||||
this.cdr.detectChanges();
|
|
||||||
this.dataProviderInfo = data;
|
this.dataProviderInfo = data;
|
||||||
this.getProvenanceUrls();
|
this.getProvenanceUrls();
|
||||||
this.datasourceId = this.dataProviderInfo.objIdentifier;
|
this.datasourceId = this.dataProviderInfo.objIdentifier;
|
||||||
|
@ -367,6 +366,7 @@ export class DataProviderComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.showLoading = false;
|
this.showLoading = false;
|
||||||
|
this.cdr.detectChanges();
|
||||||
|
|
||||||
// if (this.dataProviderInfo.tabs != undefined && this.dataProviderInfo.tabs.length > 0) {
|
// if (this.dataProviderInfo.tabs != undefined && this.dataProviderInfo.tabs.length > 0) {
|
||||||
// this.activeTab = this.dataProviderInfo.tabs[0].name;
|
// this.activeTab = this.dataProviderInfo.tabs[0].name;
|
||||||
|
|
|
@ -474,7 +474,6 @@ export class ProjectComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
actionsAfterGettingProjectInfo() {
|
actionsAfterGettingProjectInfo() {
|
||||||
this.cdr.detectChanges();
|
|
||||||
this.projectName = this.projectInfo.acronym;
|
this.projectName = this.projectInfo.acronym;
|
||||||
if (this.projectName == undefined || this.projectName == '') {
|
if (this.projectName == undefined || this.projectName == '') {
|
||||||
this.projectName = this.projectInfo.title;
|
this.projectName = this.projectInfo.title;
|
||||||
|
@ -521,6 +520,7 @@ export class ProjectComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.showLoading = false;
|
this.showLoading = false;
|
||||||
|
this.cdr.detectChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
public downloadCsvFile(url: string, filename: string) {
|
public downloadCsvFile(url: string, filename: string) {
|
||||||
|
|
|
@ -447,7 +447,6 @@ export class ResultLandingComponent {
|
||||||
this.hasAltMetrics = false;
|
this.hasAltMetrics = false;
|
||||||
this.subscriptions.push(this._resultLandingService.getResultLandingInfo(this.id, this.identifier, this.type, subjectsVocabulary, this.properties).subscribe(
|
this.subscriptions.push(this._resultLandingService.getResultLandingInfo(this.id, this.identifier, this.type, subjectsVocabulary, this.properties).subscribe(
|
||||||
data => {
|
data => {
|
||||||
this.cdr.detectChanges();
|
|
||||||
this.resultLandingInfo = data;
|
this.resultLandingInfo = data;
|
||||||
this.id = this.resultLandingInfo.objIdentifier;
|
this.id = this.resultLandingInfo.objIdentifier;
|
||||||
//old
|
//old
|
||||||
|
|
Loading…
Reference in New Issue