widget can be also enabled/disabled using labels

This commit is contained in:
zadam
2019-09-01 09:52:07 +02:00
parent 0c78fda531
commit 3ca37b2f42
3 changed files with 14 additions and 6 deletions

View File

@@ -11,8 +11,6 @@ class SimilarNotesWidget extends StandardWidget {
async doRenderBody() {
const similarNoteIds = await server.get('similar_notes/' + this.ctx.note.noteId);
console.log(similarNoteIds);
if (similarNoteIds.length === 0) {
this.$body.text("No similar notes found ...");
return;