add ability to auto execute search note

This commit is contained in:
contributor 2025-11-22 14:38:18 +02:00
parent 0117f54ef8
commit cc468d964f

View File

@ -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 (
<div className="search-definition-widget">
<div className="search-settings">