mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
18 lines
466 B
JavaScript
18 lines
466 B
JavaScript
import CommandButtonWidget from "./command_button.js";
|
|
|
|
export default class NoteRevisionsButton extends CommandButtonWidget {
|
|
constructor() {
|
|
super();
|
|
|
|
this.icon('bx-history')
|
|
.title("Note Revisions")
|
|
.command("showNoteRevisions")
|
|
.titlePlacement("bottom")
|
|
.class("icon-action");
|
|
}
|
|
|
|
isEnabled() {
|
|
return super.isEnabled() && !['launcher', 'doc'].includes(this.note?.type);
|
|
}
|
|
}
|