From 7d082db285338e5e2d7ab103e1a0f8f7fb40e9ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Castillo?= Date: Thu, 26 Mar 2026 18:44:21 -0300 Subject: [PATCH] fix: add error messages for max files uploaded, update uicore and use UploadInputV3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomás Castillo --- src/components/mui/formik-inputs/mui-formik-upload.js | 6 ++++-- src/i18n/en.json | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/mui/formik-inputs/mui-formik-upload.js b/src/components/mui/formik-inputs/mui-formik-upload.js index fb62827ba..0781028d8 100644 --- a/src/components/mui/formik-inputs/mui-formik-upload.js +++ b/src/components/mui/formik-inputs/mui-formik-upload.js @@ -1,7 +1,8 @@ import React from "react"; import PropTypes from "prop-types"; +import T from "i18n-react/dist/i18n-react"; import { FormHelperText } from "@mui/material"; -import { UploadInputV2 } from "openstack-uicore-foundation/lib/components"; +import { UploadInputV3 } from "openstack-uicore-foundation/lib/components"; import { useField } from "formik"; import { ALLOWED_INVENTORY_IMAGE_FORMATS, @@ -72,7 +73,7 @@ const MuiFormikUpload = ({ {meta.touched && meta.error && ( {meta.error} )} - diff --git a/src/i18n/en.json b/src/i18n/en.json index 26e6aa499..106ed6b48 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -8,7 +8,8 @@ "empty_list_schedule_events": "Please select a Day and a Location ...", "not_allowed": "You are not allowed here, please login with another user to access this page.", "not_found": "Not Found!", - "entity_not_found": "The entity you are looking for was not found." + "entity_not_found": "The entity you are looking for was not found.", + "maximum_files": "Maximum number of files has been reached" }, "general": { "summit": "Event",