mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
Add openAttachmentCustom
This commit is contained in:
@@ -44,8 +44,7 @@ export default class RootCommandExecutor extends Component {
|
||||
|
||||
openNoteExternallyCommand() {
|
||||
const noteId = appContext.tabManager.getActiveContextNoteId();
|
||||
const mime = appContext.tabManager.getActiveContextNoteMime()
|
||||
|
||||
const mime = appContext.tabManager.getActiveContextNoteMime();
|
||||
if (noteId) {
|
||||
openService.openNoteExternally(noteId, mime);
|
||||
}
|
||||
@@ -53,8 +52,9 @@ export default class RootCommandExecutor extends Component {
|
||||
|
||||
openNoteCustomCommand() {
|
||||
const noteId = appContext.tabManager.getActiveContextNoteId();
|
||||
const mime = appContext.tabManager.getActiveContextNoteMime();
|
||||
if (noteId) {
|
||||
openService.openNoteCustom(noteId);
|
||||
openService.openNoteCustom(noteId, mime);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user