template attributes don't need isInheritable flag to take effect

This commit is contained in:
zadam
2019-09-07 11:00:15 +02:00
parent b069436039
commit faae11f070
4 changed files with 139 additions and 138 deletions

View File

@@ -9,7 +9,8 @@ class EditedNotesWidget extends StandardWidget {
getMaxHeight() { return "200px"; }
async isEnabled() {
return await this.ctx.note.hasLabel("dateNote");
return await super.isEnabled()
&& await this.ctx.note.hasLabel("dateNote");
}
async doRenderBody() {