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

@@ -90,7 +90,7 @@ export default class FilePropertiesWidget extends NoteContextAwareWidget {
this.$uploadNewRevisionInput = this.$widget.find(".file-upload-new-revision-input");
this.$downloadButton.on('click', () => openService.downloadFileNote(this.noteId));
this.$openButton.on('click', () => openService.openNoteExternally(this.noteId));
this.$openButton.on('click', () => openService.openNoteExternally(this.noteId, this.note.mime));
this.$uploadNewRevisionButton.on("click", () => {
this.$uploadNewRevisionInput.trigger("click");