diff --git a/src/assets/locales/de/main.json b/src/assets/locales/de/main.json index cc798e320..9693a6684 100644 --- a/src/assets/locales/de/main.json +++ b/src/assets/locales/de/main.json @@ -1691,7 +1691,8 @@ "success": "Success", "error": "Error", "retry": "Retry", - "exit": "exit" + "exit": "exit", + "loading": "Loading..." }, "state": { "enabled": "aktiv", diff --git a/src/assets/locales/en/main.json b/src/assets/locales/en/main.json index 90cffed4f..bd1e83830 100644 --- a/src/assets/locales/en/main.json +++ b/src/assets/locales/en/main.json @@ -1654,7 +1654,8 @@ "success": "Success", "error": "Error", "retry": "Retry", - "exit": "exit" + "exit": "exit", + "loading": "Loading..." }, "state": { "enabled": "enabled", diff --git a/src/components/overlays/AddMultipleUser/index.tsx b/src/components/overlays/AddMultipleUser/index.tsx index ba2f48384..0ee124270 100644 --- a/src/components/overlays/AddMultipleUser/index.tsx +++ b/src/components/overlays/AddMultipleUser/index.tsx @@ -42,7 +42,7 @@ import EditIcon from '@mui/icons-material/Edit' import ArticleOutlinedIcon from '@mui/icons-material/ArticleOutlined' import ChevronRightIcon from '@mui/icons-material/ChevronRight' import { OVERLAYS, PAGES } from 'types/Constants' -import { show } from 'features/control/overlay' +import { show, closeOverlay } from 'features/control/overlay' import { Dropzone } from '../../shared/basic/Dropzone' import { rolesToAddSelector } from 'features/admin/userDeprecated/slice' import { @@ -150,7 +150,7 @@ export default function AddMultipleUser() { } const handleConfirm = async () => { - if (isSuccess || isError) dispatch(show(OVERLAYS.NONE, '')) + if (isSuccess || isError) dispatch(closeOverlay()) if (uploadedFile && !roles.length) setIsFileUploaded(true) else if (uploadedFile && roles.length) { setLoading(true) @@ -408,7 +408,7 @@ export default function AddMultipleUser() { title: t('content.usermanagement.addMultipleUsers.heading'), intro: t('content.usermanagement.addMultipleUsers.intro'), closeWithIcon: true, - onCloseWithIcon: () => dispatch(show(OVERLAYS.NONE, '')), + onCloseWithIcon: () => dispatch(closeOverlay()), }} /> @@ -429,7 +429,7 @@ export default function AddMultipleUser() { helperText="" helperTextColor="success" label="" - loadIndicator="Loading ..." + loadIndicator={t('global.actions.loading')} loading size="medium" onButtonClick={() => {}}