mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
[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:
parent
3a68382be0
commit
87c37dd9bd
@ -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', () => {
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user