mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1835] fixed wrongly reported pagination into demo shell search result (#2671)
This commit is contained in:
@@ -195,6 +195,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
ngOnChanges(changes: SimpleChanges) {
|
ngOnChanges(changes: SimpleChanges) {
|
||||||
if (changes.nodeResult && changes.nodeResult.currentValue) {
|
if (changes.nodeResult && changes.nodeResult.currentValue) {
|
||||||
this.nodeResult = <NodePaging> changes.nodeResult.currentValue;
|
this.nodeResult = <NodePaging> changes.nodeResult.currentValue;
|
||||||
|
this.pagination = this.nodeResult.list.pagination;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -53,6 +53,7 @@ export class SearchResultComponent implements OnInit {
|
|||||||
this.searchedWord = params.hasOwnProperty(this.queryParamName) ? params[this.queryParamName] : null;
|
this.searchedWord = params.hasOwnProperty(this.queryParamName) ? params[this.queryParamName] : null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
this.maxItems = this.preferences.paginationSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
showSearchResult(event: NodePaging) {
|
showSearchResult(event: NodePaging) {
|
||||||
|
Reference in New Issue
Block a user