mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +01:00
skeleton for global link map
This commit is contained in:
10
src/public/app/widgets/buttons/open_note_button_widget.js
Normal file
10
src/public/app/widgets/buttons/open_note_button_widget.js
Normal file
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user