mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-14 21:22:29 +08:00
16 lines
400 B
JavaScript
16 lines
400 B
JavaScript
![]() |
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';
|
||
|
}
|
||
|
}
|