autocomplete for add link dialog, #203

This commit is contained in:
azivner
2018-11-07 17:16:33 +01:00
parent a0f362457e
commit 90dbe637ed
6 changed files with 39 additions and 56 deletions

View File

@@ -44,9 +44,12 @@ async function getRecentNotes(currentNoteId) {
LIMIT 200`, [currentNoteId]);
return recentNotes.map(rn => {
const title = noteCacheService.getNoteTitleForPath(rn.notePath.split('/'));
return {
path: rn.notePath,
title: noteCacheService.getNoteTitleForPath(rn.notePath.split('/'))
title: title,
highlighted: title
};
});
}