launchbar WIP

This commit is contained in:
zadam
2022-08-06 23:49:25 +02:00
parent 08aa65bddb
commit 8d608c3c1c
5 changed files with 104 additions and 90 deletions

View File

@@ -0,0 +1,16 @@
import ButtonWidget from "./button_widget.js";
export default class NoteRevisionsButton extends ButtonWidget {
constructor() {
super();
this.icon('bx-history')
.title("Note Revisions")
.command("showNoteRevisions")
.titlePlacement("bottom");
}
isEnabled() {
return super.isEnabled() && this.note?.type !== 'shortcut';
}
}