mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-11-18 17:01:56 +08: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);
|
|
}
|
|
}
|