From 11a2adfdf5463766ebfc5c366d6067728f3a154a Mon Sep 17 00:00:00 2001 From: Hin Yan Liew Date: Mon, 9 Dec 2024 21:41:44 -0500 Subject: [PATCH] added invalid.input key to data.ts and adjusted defaultFileSizeLimit min --- src/client/app/components/admin/PreferencesComponent.tsx | 4 ++-- src/client/app/translations/data.ts | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/client/app/components/admin/PreferencesComponent.tsx b/src/client/app/components/admin/PreferencesComponent.tsx index 34f891e41..b8d6cfa5e 100644 --- a/src/client/app/components/admin/PreferencesComponent.tsx +++ b/src/client/app/components/admin/PreferencesComponent.tsx @@ -198,7 +198,7 @@ export default function PreferencesComponent() { invalid={invalidReadingFreq()} /> - +
@@ -401,7 +401,7 @@ export default function PreferencesComponent() { type='number' value={localAdminPref.defaultFileSizeLimit} onChange={e => makeLocalChanges('defaultFileSizeLimit', e.target.value)} - min='0' + min={Number(localAdminPref.defaultWarningFileSize)} maxLength={50} invalid={invalidFileSizeLimit()} /> diff --git a/src/client/app/translations/data.ts b/src/client/app/translations/data.ts index 393ffaf5c..fe64e0f3c 100644 --- a/src/client/app/translations/data.ts +++ b/src/client/app/translations/data.ts @@ -277,6 +277,7 @@ const LocaleTranslationData = { "input.gps.coords.second": "in this format -> latitude,longitude", "input.gps.range": "Invalid GPS coordinate, latitude must be an integer between -90 and 90, longitude must be an integer between -180 and 180. You input: ", "insufficient.readings": "Insufficient readings data to process comparison for ", + "invalid.input": "Invalid input", "invalid.number": "Please submit a valid number (between 0 and 2.0)", "invalid.token.login": "Token has expired. Please log in again.", "invalid.token.login.admin": "Token has expired. Please log in again to view this page.", @@ -810,6 +811,7 @@ const LocaleTranslationData = { "input.gps.coords.second": "in this format -> latitude,longitude\u{26A1}", "input.gps.range": "Coordonnée GPS invalide, la latitude doit être un nombre entier entre -90 et 90, la longitude doit être un nombre entier entre -180 et 180. You input: \u{26A1}", "insufficient.readings": "Données de lectures insuffisantes pour la comparaison de processus pour ", + "invalid.input": "Invalid input\u{26A1}", "invalid.number": "Please submit a valid number (between 0 and 2.0)\u{26A1}", "invalid.token.login": "Le jeton a expiré. Connectez-vous à nouveau.", "invalid.token.login.admin": "Le jeton a expiré. Please log in again to view this page.\u{26A1}", @@ -1344,6 +1346,7 @@ const LocaleTranslationData = { "input.gps.coords.second": "de esta forma -> latitud, longitud", "input.gps.range": "Coordenada GPS no válida, la latitud debe ser un número entero entre -90 y 90, la longitud debe ser un número entero entre -180 y 180. Usted puso: ", "insufficient.readings": "Hay insuficientes datos de lecturas para procesar la comparación de ", + "invalid.input": "Invalid input\u{26A1}", "invalid.number": "Por favor indique un número válido (entre 0 a 2.0)", "invalid.token.login": "El token se ha vencido. Inicie la sesión nuevamente", "invalid.token.login.admin": "El token se ha vencido. Inicie la sesión nuevamente para ver esta página.",