From ddc1cbbd7339681e465d62ce750daa5ea1cd1441 Mon Sep 17 00:00:00 2001 From: Yana De Pauw Date: Wed, 23 Sep 2020 11:36:10 +0200 Subject: [PATCH] 73249: Fix message and filter issue --- .../field-components/file-section/file-section.component.ts | 3 +-- src/assets/i18n/en.json5 | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/+item-page/simple/field-components/file-section/file-section.component.ts b/src/app/+item-page/simple/field-components/file-section/file-section.component.ts index a668767c99..4b60691e09 100644 --- a/src/app/+item-page/simple/field-components/file-section/file-section.component.ts +++ b/src/app/+item-page/simple/field-components/file-section/file-section.component.ts @@ -66,8 +66,7 @@ export class FileSectionComponent implements OnInit { currentPage: this.currentPage, elementsPerPage: this.pageSize }).pipe( - filter((bitstreamsRD: RemoteData>) => hasValue(bitstreamsRD)), - filter((bitstreamsRD: RemoteData>) => hasValue(!bitstreamsRD.isLoading)), + filter((bitstreamsRD: RemoteData>) => hasValue(bitstreamsRD) && (hasValue(bitstreamsRD.error) || hasValue(bitstreamsRD.payload))), take(1), ).subscribe((bitstreamsRD: RemoteData>) => { if (bitstreamsRD.error) { diff --git a/src/assets/i18n/en.json5 b/src/assets/i18n/en.json5 index 4148c6e5c9..97a9faf861 100644 --- a/src/assets/i18n/en.json5 +++ b/src/assets/i18n/en.json5 @@ -1045,6 +1045,10 @@ + "file-section.error.header": "Error obtaining files for this item", + + + "footer.copyright": "copyright © 2002-{{ year }}", "footer.link.dspace": "DSpace software",