mirror of
https://github.com/zadam/trilium.git
synced 2025-12-06 23:44:25 +01:00
add ability to auto execute search note
This commit is contained in:
parent
0117f54ef8
commit
cc468d964f
@ -73,6 +73,17 @@ export default function SearchDefinitionTab({ note, ntxId, hidden }: TabContext)
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
async function autoExecute() {
|
||||||
|
if (!hidden && note?.hasLabel("autoExecuteSearch")) {
|
||||||
|
await refreshResults();
|
||||||
|
parentComponent?.triggerCommand("toggleRibbonTabBookProperties", {});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
autoExecute();
|
||||||
|
}, [note?.noteId, hidden]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="search-definition-widget">
|
<div className="search-definition-widget">
|
||||||
<div className="search-settings">
|
<div className="search-settings">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user