mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
dark theme tweaks
This commit is contained in:
@@ -21,12 +21,10 @@ export default class ButtonWidget extends NoteContextAwareWidget {
|
||||
this.$widget = $(TPL);
|
||||
this.overflowing();
|
||||
|
||||
if (this.settings.command) {
|
||||
this.$widget.on("click", () => this.triggerCommand(this.settings.command));
|
||||
}
|
||||
|
||||
if (this.settings.onClick) {
|
||||
this.$widget.on("click", () => this.settings.onClick(this));
|
||||
} else {
|
||||
this.$widget.on("click", () => this.triggerCommand(this.settings.command));
|
||||
}
|
||||
|
||||
this.$widget.attr("data-placement", this.settings.titlePlacement);
|
||||
|
||||
Reference in New Issue
Block a user