mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 07:15:51 +01:00
fixes in enabling / disabling widgets in runtime
This commit is contained in:
@@ -27,8 +27,8 @@ const TPL = `
|
||||
export default class CalendarWidget extends CollapsibleWidget {
|
||||
getWidgetTitle() { return "Calendar"; }
|
||||
|
||||
async isEnabled() {
|
||||
return await super.isEnabled()
|
||||
isEnabled() {
|
||||
return super.isEnabled()
|
||||
&& this.note.hasOwnedLabel("dateNote");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user