Skip to content

Commit

Permalink
added invalid.input key to data.ts and adjusted defaultFileSizeLimit min
Browse files Browse the repository at this point in the history
  • Loading branch information
hinyan17 committed Dec 10, 2024
1 parent 3eb6d94 commit 11a2adf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/app/components/admin/PreferencesComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export default function PreferencesComponent() {
invalid={invalidReadingFreq()}
/>
<FormFeedback>
<FormattedMessage id="error.unknown" ></FormattedMessage>
<FormattedMessage id="invalid.input" ></FormattedMessage>
</FormFeedback>
</div>
<div>
Expand Down Expand Up @@ -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()}
/>
Expand Down
3 changes: 3 additions & 0 deletions src/client/app/translations/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -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}",
Expand Down Expand Up @@ -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.",
Expand Down

0 comments on commit 11a2adf

Please sign in to comment.