chore(search): use translation for button

This commit is contained in:
Elian Doran 2026-02-21 19:21:09 +02:00
parent d245fdd1b8
commit 1441ac67ab
No known key found for this signature in database
2 changed files with 3 additions and 5 deletions

View File

@ -1824,7 +1824,8 @@
},
"search_result": {
"no_notes_found": "No notes have been found for given search parameters.",
"search_not_executed": "Search has not been executed yet."
"search_not_executed": "Search has not been executed yet.",
"search_now": "Search now"
},
"spacer": {
"configure_launchbar": "Configure Launchbar"

View File

@ -49,10 +49,7 @@ export default function SearchResult() {
<div className={clsx("search-result-widget", state === undefined && "hidden-ext")}>
{state === SearchResultState.NOT_EXECUTED && (
<NoItems icon="bx bx-file-find" text={t("search_result.search_not_executed")}>
<Button
text="Search now"
triggerCommand="searchNotes"
/>
<Button text={t("search_result.search_now")} triggerCommand="searchNotes" />
</NoItems>
)}