mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
During submission retrieve collection list only at first load
This commit is contained in:
@@ -209,6 +209,8 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit {
|
|||||||
elementsPerPage: 100
|
elementsPerPage: 100
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Retrieve collection list only when is the first change
|
||||||
|
if (changes.currentCollectionId.isFirstChange()) {
|
||||||
// @TODO replace with search/top browse endpoint
|
// @TODO replace with search/top browse endpoint
|
||||||
// @TODO implement community/subcommunity hierarchy
|
// @TODO implement community/subcommunity hierarchy
|
||||||
const communities$ = this.communityDataService.findAll(findOptions).pipe(
|
const communities$ = this.communityDataService.findAll(findOptions).pipe(
|
||||||
@@ -248,6 +250,7 @@ export class SubmissionFormCollectionComponent implements OnChanges, OnInit {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize all instance variables
|
* Initialize all instance variables
|
||||||
|
Reference in New Issue
Block a user