diff --git a/src/assets/locales/de/main.json b/src/assets/locales/de/main.json index c4acdc0b9..b62ad68e4 100644 --- a/src/assets/locales/de/main.json +++ b/src/assets/locales/de/main.json @@ -788,7 +788,7 @@ "roleDesc": "Role Description Details", "technicalUser": { "addOverlay": { - "service": "Dienst", + "service": "Technical User Role", "serviceSubHeading": "Select one service roles:", "username": "Username", "description": "Beschreibung", diff --git a/src/assets/locales/en/main.json b/src/assets/locales/en/main.json index acd1f8e99..dc796cab3 100644 --- a/src/assets/locales/en/main.json +++ b/src/assets/locales/en/main.json @@ -786,7 +786,7 @@ "roleDesc": "Role Description Details", "technicalUser": { "addOverlay": { - "service": "Service", + "service": "Technical User Role", "serviceSubHeading": "Select one service roles:", "username": "Username", "description": "Description", diff --git a/src/components/overlays/AddTechnicalUser/TechnicalUserAddForm.tsx b/src/components/overlays/AddTechnicalUser/TechnicalUserAddForm.tsx index ba565448d..46417def3 100644 --- a/src/components/overlays/AddTechnicalUser/TechnicalUserAddForm.tsx +++ b/src/components/overlays/AddTechnicalUser/TechnicalUserAddForm.tsx @@ -54,7 +54,10 @@ const TechnicalUserAddFormSelect = ({ ( - + {t('content.addUser.technicalUser.addOverlay.service')} @@ -116,7 +119,10 @@ const TechnicalUserAddFormTextfield = ({ ( <> - + {label} { const [addServiceAccount] = useAddServiceAccountMutation() const [loading, setLoading] = useState(false) - const { data } = useFetchOwnUserDetailsQuery() const handleConfirm = async (formValues: DefaultFormFieldValuesType) => { setLoading(true) @@ -80,24 +77,6 @@ export const AddTechnicalUser = () => { //openAddTechnicalUserResponseOverlay() } - const userDetailsData = { - cardCategory: t('content.addUser.technicalUser.addOverlay.spocHeadline'), - cardContentItems: { - organizsationName: { - label: t('content.addUser.technicalUser.addOverlay.org'), - value: data ? data.company : '', - }, - username: { - label: t('content.addUser.technicalUser.addOverlay.name'), - value: data ? `${data.firstName} ${data.lastName}` : '', - }, - eMailAddress: { - label: t('content.addUser.technicalUser.addOverlay.email'), - value: data ? data.email : '', - }, - }, - } - const defaultFormFieldValues = { TechnicalUserName: '', TechnicalUserService: 'none',