mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
sidebar widgets can be now disabled with labels
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user