mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 02:02:29 +08:00
18 lines
458 B
JavaScript
18 lines
458 B
JavaScript
import CommandButtonWidget from "./command_button.js";
|
|
|
|
export default class RevisionsButton extends CommandButtonWidget {
|
|
constructor() {
|
|
super();
|
|
|
|
this.icon('bx-history')
|
|
.title("Note Revisions")
|
|
.command("showRevisions")
|
|
.titlePlacement("bottom")
|
|
.class("icon-action");
|
|
}
|
|
|
|
isEnabled() {
|
|
return super.isEnabled() && !['launcher', 'doc'].includes(this.note?.type);
|
|
}
|
|
}
|