Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
refactor(frontend:files): set readonly mode for PDF files in viewer dialog
johavenb81144b0363a
diff --git a/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.ts b/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.tsindex a9e6a2db..faaf15d3 100644--- a/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.ts+++ b/frontend/src/app/applications/files/components/dialogs/files-viewer-dialog.component.ts@@ -48,7 +48,7 @@ export class FilesViewerDialogComponent implements OnInit, OnDestroy {private readonly offsetTop = 42ngOnInit() {- this.isReadonly.set(this.mode === FILE_MODE.VIEW)+ this.isReadonly.set(this.mode === FILE_MODE.VIEW || this.hookedShortMime === SHORT_MIME.PDF)this.openedFile = { id: this.currentFile.id, name: this.currentFile.name, mimeUrl: this.currentFile.mimeUrl }this.onResize()}