UI fixes to search definition + backend support

This commit is contained in:
zadam
2021-01-18 22:52:07 +01:00
parent 3fa2535862
commit d7e46263be
14 changed files with 134 additions and 76 deletions

View File

@@ -23,6 +23,8 @@ async function autocompleteSourceForCKEditor(queryText) {
highlightedNotePathTitle: row.highlightedNotePathTitle
}
}));
}, {
allowCreatingNotes: true
});
});
}
@@ -34,7 +36,7 @@ async function autocompleteSource(term, cb, options = {}) {
+ '?query=' + encodeURIComponent(term)
+ '&activeNoteId=' + activeNoteId);
if (term.trim().length >= 1) {
if (term.trim().length >= 1 && options.allowCreatingNotes) {
results = [
{
action: 'create-note',