chore(react/ribbon): search & execute button

This commit is contained in:
Elian Doran
2025-08-24 16:02:15 +03:00
parent b6d5a6ec2e
commit 80ad87671a
2 changed files with 10 additions and 25 deletions

View File

@@ -156,6 +156,16 @@ export default function SearchDefinitionTab({ note, ntxId }: TabContext) {
keyboardShortcut="Enter"
onClick={refreshResults}
/>
<Button
icon="bx bxs-zap"
text={t("search_definition.search_execute")}
onClick={async () => {
await server.post(`search-and-execute-note/${note.noteId}`);
refreshResults();
toast.showMessage(t("search_definition.actions_executed"), 3000);
}}
/>
</div>
</td>
</tr>