diff --git a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html index 15ca17419..7a64d02b3 100644 --- a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html +++ b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html @@ -120,6 +120,15 @@ > + { this.projectId = params.projectId; @@ -617,5 +619,13 @@ export class FilePreviewScreenComponent implements OnInit, OnDestroy { window.open(`/html-debug/${this.projectId}/${this.fileId}`, '_blank'); } + downloadOriginalFile() { + this._fileManagementControllerService + .downloadOriginalFile(this.projectId, this.fileId, true, this.fileData.fileStatus.lastUploaded, 'response') + .subscribe((data) => { + download(data, this.fileData.fileStatus.filename); + }); + } + // } diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index 80e2ae2b3..b6ba99ff1 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -298,6 +298,7 @@ "fullscreen": "Full Screen (F)", "new-tab-ssr": "Open Document in Server Side Rendering Mode", "html-debug": "Open Document HTML Debug", + "download-original-file": "Download Original File", "exit-fullscreen": "Exit Full Screen (F)" }, "annotation-actions": {