Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix hiding similar notes widget by label
zadam33511c0c10ea
diff --git a/src/public/app/widgets/similar_notes.js b/src/public/app/widgets/similar_notes.jsindex dd4995480a..5d297996be 100644--- a/src/public/app/widgets/similar_notes.js+++ b/src/public/app/widgets/similar_notes.js@@ -106,6 +106,10 @@ export default class SimilarNotesWidget extends TabAwareWidget {}async refresh() {+ if (!this.isEnabled()) {+ return;+ }+// remember which title was when we found the similar notesthis.title = this.note.title;diff --git a/src/services/attributes.js b/src/services/attributes.jsindex 116e7e5c8d..d839b58e7e 100644--- a/src/services/attributes.js+++ b/src/services/attributes.js@@ -27,6 +27,11 @@ const BUILTIN_ATTRIBUTES = [{ type: 'label', name: 'customResourceProvider', isDangerous: true },{ type: 'label', name: 'bookZoomLevel', isDangerous: false },{ type: 'label', name: 'widget', isDangerous: true },+ { type: 'label', name: 'noteInfoWidgetDisabled' },+ { type: 'label', name: 'linkMapWidgetDisabled' },+ { type: 'label', name: 'noteRevisionsWidgetDisabled' },+ { type: 'label', name: 'whatLinksHereWidgetDisabled' },+ { type: 'label', name: 'similarNotesWidgetDisabled' },// relation names{ type: 'relation', name: 'runOnNoteCreation', isDangerous: true },