mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 14:25:51 +01:00
11 lines
317 B
JavaScript
11 lines
317 B
JavaScript
|
|
import ButtonWidget from "./button_widget.js";
|
||
|
|
import appContext from "../../services/app_context.js";
|
||
|
|
|
||
|
|
export default class OpenNoteButtonWidget extends ButtonWidget {
|
||
|
|
targetNote(noteId) {
|
||
|
|
this.onClick(() => appContext.tabManager.openTabWithNoteWithHoisting(noteId, true));
|
||
|
|
|
||
|
|
return this;
|
||
|
|
}
|
||
|
|
}
|