Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(search): use translation for button
Elian Doran1441ac67abba
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex 9fd5f604d0..4b90a913f8 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -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"diff --git a/apps/client/src/widgets/search_result.tsx b/apps/client/src/widgets/search_result.tsxindex cb32f8b8b7..af01336fb9 100644--- a/apps/client/src/widgets/search_result.tsx+++ b/apps/client/src/widgets/search_result.tsx@@ -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>)}