From 58a742fafe5a785ba84c0ed4858f2979998cd7b0 Mon Sep 17 00:00:00 2001 From: Juho Kettunen Date: Fri, 13 Dec 2024 15:12:09 +0200 Subject: [PATCH] Use semantically better loading text The continuebutton on the application page does not yet send the application, but only validates the current form page and proceeds to the next form page. --- src/areaSearch/areaSearchSpecsPage.tsx | 10 ++-------- src/i18n/en/common.json | 2 +- src/i18n/fi/common.json | 2 +- src/i18n/sv/common.json | 2 +- 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/areaSearch/areaSearchSpecsPage.tsx b/src/areaSearch/areaSearchSpecsPage.tsx index 2b05287..7086a55 100644 --- a/src/areaSearch/areaSearchSpecsPage.tsx +++ b/src/areaSearch/areaSearchSpecsPage.tsx @@ -520,16 +520,10 @@ const AreaSearchSpecsPage = ({ variant="primary" onClick={(e) => onSubmit(e)} isLoading={isSubmittingAreaSearch} - loadingText={t( - 'areaSearch.specs.submitting', - 'Submitting...', - )} + loadingText={t('areaSearch.specs.saving', 'Saving...')} disabled={hasSubmitErrors && !valid} > - {t( - 'areaSearch.specs.continueButton', - 'Apply for this area', - )} + {t('areaSearch.specs.continueButton', 'Continue')} {lastSubmissionError && (