sidebar widgets can be now disabled with labels

This commit is contained in:
zadam
2020-09-13 21:59:31 +02:00
parent 1e1709ca6a
commit 5e11806110
6 changed files with 33 additions and 24 deletions

View File

@@ -42,6 +42,10 @@ const TPL = `
`;
export default class NoteInfoWidget extends CollapsibleWidget {
isEnabled() {
return super.isEnabled() && !this.note.hasLabel('noteInfoWidgetDisabled');
}
get widgetTitle() { return "Note info"; }
async doRenderBody() {