improve "open" button behaviour for files when in browser

This commit is contained in:
Charles Dagenais
2022-09-21 21:41:51 -04:00
parent 9f744153e3
commit 73ad557784
6 changed files with 23 additions and 7 deletions

View File

@@ -69,7 +69,7 @@ export default class ImagePropertiesWidget extends NoteContextAwareWidget {
this.$fileSize = this.$widget.find(".image-filesize");
this.$openButton = this.$widget.find(".image-open");
this.$openButton.on('click', () => openService.openNoteExternally(this.noteId));
this.$openButton.on('click', () => openService.openNoteExternally(this.noteId, this.note.mime ));
this.$imageDownloadButton = this.$widget.find(".image-download");
this.$imageDownloadButton.on('click', () => openService.downloadFileNote(this.noteId));