73249: Fix message and filter issue

This commit is contained in:
Yana De Pauw
2020-09-23 11:36:10 +02:00
parent cfadb4314e
commit ddc1cbbd73
2 changed files with 5 additions and 2 deletions

View File

@@ -66,8 +66,7 @@ export class FileSectionComponent implements OnInit {
currentPage: this.currentPage,
elementsPerPage: this.pageSize
}).pipe(
filter((bitstreamsRD: RemoteData<PaginatedList<Bitstream>>) => hasValue(bitstreamsRD)),
filter((bitstreamsRD: RemoteData<PaginatedList<Bitstream>>) => hasValue(!bitstreamsRD.isLoading)),
filter((bitstreamsRD: RemoteData<PaginatedList<Bitstream>>) => hasValue(bitstreamsRD) && (hasValue(bitstreamsRD.error) || hasValue(bitstreamsRD.payload))),
take(1),
).subscribe((bitstreamsRD: RemoteData<PaginatedList<Bitstream>>) => {
if (bitstreamsRD.error) {

View File

@@ -1045,6 +1045,10 @@
"file-section.error.header": "Error obtaining files for this item",
"footer.copyright": "copyright © 2002-{{ year }}",
"footer.link.dspace": "DSpace software",