mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
fixes in enabling / disabling widgets in runtime
This commit is contained in:
@@ -13,9 +13,15 @@ class BasicWidget extends Component {
|
||||
this.appContext.trigger(eventName);
|
||||
});
|
||||
|
||||
this.toggle(this.isEnabled());
|
||||
|
||||
return $widget;
|
||||
}
|
||||
|
||||
isEnabled() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* for overriding
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user