Added FindAllOptions param to getAuthorizedCollection and getAuthorizedCollectionByCommunity

This commit is contained in:
Giuseppe Digilio
2019-07-26 15:29:00 +02:00
parent 697b8199e4
commit 45ab326355
2 changed files with 7 additions and 8 deletions

View File

@@ -206,7 +206,7 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit {
);
const findOptions: FindAllOptions = {
elementsPerPage: 100
elementsPerPage: 1000
};
// Retrieve collection list only when is the first change
@@ -219,7 +219,7 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit {
const listCollection$ = communities$.pipe(
flatMap((communityData: Community) => {
return this.collectionDataService.getAuthorizedCollectionByCommunity(communityData.uuid).pipe(
return this.collectionDataService.getAuthorizedCollectionByCommunity(communityData.uuid, findOptions).pipe(
find((collections: RemoteData<PaginatedList<Collection>>) => !collections.isResponsePending && collections.hasSucceeded),
mergeMap((collections: RemoteData<PaginatedList<Collection>>) => collections.payload.page),
filter((collectionData: Collection) => isNotEmpty(collectionData)),