Skip to content

Commit

Permalink
Merge pull request #465 from lhenze/464-collpages-emptymessage
Browse files Browse the repository at this point in the history
Collection pages, recent submissions: Added "empty" message
  • Loading branch information
artlowel committed Sep 4, 2019
2 parents ee56de9 + 64db1c2 commit 94eecff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
"collection.form.tableofcontents": "News (HTML)",
"collection.form.title": "Name",
"collection.page.browse.recent.head": "Recent Submissions",
"collection.page.browse.recent.empty": "No items to show",
"collection.page.license": "License",
"collection.page.news": "News",
"community.create.head": "Create a Community",
Expand Down
3 changes: 3 additions & 0 deletions src/app/+collection-page/collection-page.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ <h2>{{'collection.page.browse.recent.head' | translate}}</h2>
message="{{'error.recent-submissions' | translate}}"></ds-error>
<ds-loading *ngIf="!itemRD || itemRD.isLoading"
message="{{'loading.recent-submissions' | translate}}"></ds-loading>
<div *ngIf="!itemRD?.isLoading && itemRD?.payload?.page.length === 0" class="alert alert-info w-100" role="alert">
{{'collection.page.browse.recent.empty' | translate}}
</div>
</ng-container>
</div>
<ds-error *ngIf="collectionRD?.hasFailed"
Expand Down

0 comments on commit 94eecff

Please sign in to comment.