Remove metadata API calls

This commit is contained in:
Michael Shamoon
2021-03-06 14:29:24 -08:00
parent cba507258d
commit e61f042547
4 changed files with 2 additions and 32 deletions

View File

@@ -46,12 +46,7 @@
</svg>
</a>
<ng-template #previewContent>
<ng-container *ngIf="getContentType() == 'application/pdf'">
<object [data]="previewUrl | safe" class="preview" width="100%"></object>
</ng-container>
<ng-container *ngIf="getContentType() == 'text/plain'">
<object [data]="previewUrl | safe" type="text/plain" class="preview" width="100%"></object>
</ng-container>
<object [data]="previewUrl | safe" class="preview" width="100%"></object>
</ng-template>
<a [href]="getDownloadUrl()" class="btn btn-sm btn-outline-secondary" title="Download" (click)="$event.stopPropagation()" i18n-title>
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-download" fill="currentColor" xmlns="http://www.w3.org/2000/svg">