global link map setup

This commit is contained in:
zadam
2021-09-17 10:09:42 +02:00
parent ed26e32ccb
commit 43e829ca99
4 changed files with 243 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
import ButtonWidget from "./button_widget.js";
import appContext from "../../services/app_context.js";
// TODO: here we could read icon and title of the target note and use it for tooltip and displayed icon
export default class OpenNoteButtonWidget extends ButtonWidget {
targetNote(noteId) {
this.onClick(() => appContext.tabManager.openTabWithNoteWithHoisting(noteId, true));