saved search note now has refresh button, closes #369

This commit is contained in:
zadam
2019-03-30 00:12:32 +01:00
parent f479c0e10e
commit 7bbf797caf
6 changed files with 29 additions and 6 deletions

View File

@@ -1,6 +1,5 @@
import noteDetailService from "./note_detail.js";
import treeService from "./tree.js";
import infoService from './info.js';
import searchNotesService from "./search_notes.js";
const $searchString = $("#search-string");
const $component = $('#note-detail-search');
@@ -31,9 +30,7 @@ function getContent() {
$refreshButton.click(async () => {
await noteDetailService.saveNoteIfChanged();
treeService.reload();
infoService.showMessage('Tree has been refreshed.');
await searchNotesService.refreshSearch();
});
export default {