[ADF-1835] fixed wrongly reported pagination into demo shell search result (#2671)

This commit is contained in:
Vito 2017-11-20 15:22:32 +00:00 committed by Eugenio Romano
parent cef3a073ac
commit d91def08bf
2 changed files with 2 additions and 0 deletions

View File

@ -195,6 +195,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
ngOnChanges(changes: SimpleChanges) {
if (changes.nodeResult && changes.nodeResult.currentValue) {
this.nodeResult = <NodePaging> changes.nodeResult.currentValue;
this.pagination = this.nodeResult.list.pagination;
}
}

View File

@ -53,6 +53,7 @@ export class SearchResultComponent implements OnInit {
this.searchedWord = params.hasOwnProperty(this.queryParamName) ? params[this.queryParamName] : null;
});
}
this.maxItems = this.preferences.paginationSize;
}
showSearchResult(event: NodePaging) {