[master | DONE | FIXED]: Fixed when showLoading is set to false - either when search requests are finished or when there are no results.
This commit is contained in:
parent
77afc19580
commit
d0ee07e1ad
|
@ -62,6 +62,7 @@ export class BrowseRepositoriesComponent extends BrowseStakeholderBaseComponent
|
||||||
|
|
||||||
afterStakeholdersInitialized() {
|
afterStakeholdersInitialized() {
|
||||||
let currentFilteredStakeholders = this.filteredStakeholders.slice((this.currentPage-1)*this.pageSize, this.currentPage*this.pageSize);
|
let currentFilteredStakeholders = this.filteredStakeholders.slice((this.currentPage-1)*this.pageSize, this.currentPage*this.pageSize);
|
||||||
|
if(currentFilteredStakeholders && currentFilteredStakeholders.length > 0) {
|
||||||
let obs: Observable<any>[] = [];
|
let obs: Observable<any>[] = [];
|
||||||
currentFilteredStakeholders.forEach(item => {
|
currentFilteredStakeholders.forEach(item => {
|
||||||
if (!item.details) {
|
if (!item.details) {
|
||||||
|
@ -82,10 +83,13 @@ export class BrowseRepositoriesComponent extends BrowseStakeholderBaseComponent
|
||||||
currentFilteredStakeholders[index].details = item[0];
|
currentFilteredStakeholders[index].details = item[0];
|
||||||
currentFilteredStakeholders[index].details['title']['name'] = currentFilteredStakeholders[index].name;
|
currentFilteredStakeholders[index].details['title']['name'] = currentFilteredStakeholders[index].name;
|
||||||
});
|
});
|
||||||
|
this.showLoading = false;
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
} else {
|
||||||
this.showLoading = false;
|
this.showLoading = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public getResultPreview(result: SearchResult): ResultPreview {
|
public getResultPreview(result: SearchResult): ResultPreview {
|
||||||
return ResultPreview.searchResultConvert(result, (result.entityType) ? result.entityType : this.typeAsLabel);
|
return ResultPreview.searchResultConvert(result, (result.entityType) ? result.entityType : this.typeAsLabel);
|
||||||
|
|
Loading…
Reference in New Issue