mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
hide "go to selected note" button in jump because it doesn't make sense there
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user