hide "go to selected note" button in jump because it doesn't make sense there

This commit is contained in:
azivner
2018-11-14 11:28:52 +01:00
parent 24a0856d22
commit e44c7c9947
2 changed files with 12 additions and 7 deletions

View File

@@ -15,15 +15,13 @@ async function showDialog() {
$dialog.modal();
noteAutocompleteService.initNoteAutocomplete($autoComplete)
noteAutocompleteService.initNoteAutocomplete($autoComplete, { hideGoToSelectedNoteButton: true })
.on('autocomplete:selected', function(event, suggestion, dataset) {
if (!suggestion.path) {
return false;
}
treeService.activateNote(suggestion.path);
$dialog.modal('hide');
});
noteAutocompleteService.showRecentNotes($autoComplete);