mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-09 17:52:32 +08: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;
|
||
|
}
|
||
|
}
|