mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 17:25:52 +01:00
saved search note now has refresh button, closes #369
This commit is contained in:
@@ -96,6 +96,15 @@ async function saveSearch() {
|
||||
resetSearch();
|
||||
}
|
||||
|
||||
async function refreshSearch() {
|
||||
const activeNode = treeService.getActiveNode();
|
||||
|
||||
activeNode.load(true);
|
||||
activeNode.setExpanded(true);
|
||||
|
||||
infoService.showMessage("Saved search note refreshed.");
|
||||
}
|
||||
|
||||
function init() {
|
||||
const hashValue = treeService.getHashValueFromAddress();
|
||||
|
||||
@@ -129,6 +138,7 @@ export default {
|
||||
toggleSearch,
|
||||
resetSearch,
|
||||
showSearch,
|
||||
refreshSearch,
|
||||
doSearch,
|
||||
init
|
||||
};
|
||||
Reference in New Issue
Block a user