Skip to content

Commit 082d14b

Browse files
authored
add tar for preview (#713)
* add tar for preview
1 parent c0c12ac commit 082d14b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/item-page/simple/field-components/preview-section/file-description/file-description.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
</div>
6262
<div [style]="'max-height: 500px; padding: 0px; overflow: scroll'" class="panel-body">
6363
<ul class="treeview in collapse show">
64-
<ng-container *ngIf="fileInput.format === 'application/zip'">
64+
<ng-container *ngIf="fileInput.format === 'application/zip' || fileInput.format === 'application/x-tar'">
6565
<ds-file-tree-view
6666
*ngFor="let node of fileInput.fileInfo"
6767
[node]="node">

src/app/item-page/simple/field-components/preview-section/file-description/file-description.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { MetadataBitstream } from 'src/app/core/metadata/metadata-bitstream.mode
33
import { HALEndpointService } from '../../../../../core/shared/hal-endpoint.service';
44
import {Router} from '@angular/router';
55

6-
const allowedPreviewFormats = ['text/plain', 'text/html', 'application/zip'];
6+
const allowedPreviewFormats = ['text/plain', 'text/html', 'application/zip', 'application/x-tar'];
77
@Component({
88
selector: 'ds-file-description',
99
templateUrl: './file-description.component.html',

0 commit comments

Comments
 (0)