diff --git a/apps/admin-ui/public/resources/en/common.json b/apps/admin-ui/public/resources/en/common.json index 3fe742cd60..c6aa794c2e 100644 --- a/apps/admin-ui/public/resources/en/common.json +++ b/apps/admin-ui/public/resources/en/common.json @@ -207,5 +207,6 @@ "temporaryPassword": "Temporary", "temporaryPasswordHelpText": "If enabled, the user must change the password on next login", "forbidden_one": "Forbidden, permission needed:", - "forbidden_other": "Forbidden, permissions needed:" + "forbidden_other": "Forbidden, permissions needed:", + "noRealmRolesToAssign": "There are no realm roles to assign" } diff --git a/apps/admin-ui/src/components/role-mapping/AddRoleMappingModal.tsx b/apps/admin-ui/src/components/role-mapping/AddRoleMappingModal.tsx index 5418ca2fa4..e75366c080 100644 --- a/apps/admin-ui/src/components/role-mapping/AddRoleMappingModal.tsx +++ b/apps/admin-ui/src/components/role-mapping/AddRoleMappingModal.tsx @@ -17,6 +17,7 @@ import useLocaleSort from "../../utils/useLocaleSort"; import { ResourcesKey, Row, ServiceRole } from "./RoleMapping"; import { getAvailableRoles } from "./queries"; import { getAvailableClientRoles } from "./resource"; +import { ListEmptyState } from "../list-empty-state/ListEmptyState"; type AddRoleMappingModalProps = { id: string; @@ -39,7 +40,7 @@ export const AddRoleMappingModal = ({ onAssign, onClose, }: AddRoleMappingModalProps) => { - const { t } = useTranslation("common"); + const { t } = useTranslation(type); const { adminClient } = useAdminClient(); const [searchToggle, setSearchToggle] = useState(false); @@ -104,9 +105,11 @@ export const AddRoleMappingModal = ({ - {t("assign")} + {t("common:assign")} ,