fix hiding similar notes widget by label

This commit is contained in:
zadam 2020-09-13 22:47:23 +02:00
parent 04c93d6736
commit 33511c0c10
2 changed files with 9 additions and 0 deletions

View File

@ -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 notes
this.title = this.note.title;

View File

@ -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 },