[ADF-2397] Sometimes Load more on Content Node Selector does not load next page of results (#3065)

* [ADF-2397] Sometimes Load more on Content Node Selector does not load next page of results

* [ADF-2397] added test
This commit is contained in:
suzanadirla 2018-03-13 19:35:44 +02:00 committed by Eugenio Romano
parent 3a68382be0
commit 87c37dd9bd
2 changed files with 15 additions and 0 deletions

View File

@ -140,6 +140,20 @@ describe('ContentNodeSelectorComponent', () => {
component.chosenNode = expectedNode;
});
it('should update skipCount on folder loaded', () => {
component.skipCount = 8;
component.onFolderLoaded({
list: {
pagination: {
skipCount: 10
}
}
});
expect(component.skipCount).toBe(10, 'skipCount is updated');
});
});
describe('Breadcrumbs', () => {

View File

@ -323,6 +323,7 @@ export class ContentNodeSelectorPanelComponent implements OnInit {
onFolderLoaded(nodePage: NodePaging): void {
this.attemptNodeSelection(this.documentList.folderNode);
this.pagination = nodePage.list.pagination;
this.skipCount = nodePage.list.pagination.skipCount;
}
/**