Skip to content

Commit

Permalink
Update resources-view.component.html
Browse files Browse the repository at this point in the history
  • Loading branch information
jessewashburn authored Nov 1, 2024
1 parent 3eb6f14 commit e13930a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/app/resources/view-resources/resources-view.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,19 @@
<p *ngIf="resource?.doc?.sourcePlanet !== planetConfiguration.code && resource?.doc?.sourcePlanet"><b i18n>Source:</b>{{' ' + resource?.doc?.sourcePlanet}}</p>
</div>
<div>
<planet-resources-viewer
*ngIf="resource?.doc?._attachments; else noAttachment"
[resourceId]="resourceId"
(resourceUrl)="setResourceUrl($event)">
</planet-resources-viewer>
<ng-template #noAttachment><span i18n>There is no content for this resource</span></ng-template>
<ng-container *ngIf="isLoading; else resourceContent">
<span i18n>Loading content...</span>
</ng-container>
<ng-template #resourceContent>
<planet-resources-viewer
*ngIf="resource?.doc?._attachments; else noAttachment"
[resourceId]="resourceId"
(resourceUrl)="setResourceUrl($event)">
</planet-resources-viewer>
</ng-template>
<ng-template #noAttachment>
<span i18n>There is no content for this resource</span>
</ng-template>
</div>
</div>
</div>

0 comments on commit e13930a

Please sign in to comment.