mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
launchbar WIP
This commit is contained in:
16
src/public/app/widgets/buttons/note_revisions_button.js
Normal file
16
src/public/app/widgets/buttons/note_revisions_button.js
Normal 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';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user