diff --git a/.changeset/kind-ducks-wink.md b/.changeset/kind-ducks-wink.md new file mode 100644 index 00000000000..8de712b0473 --- /dev/null +++ b/.changeset/kind-ducks-wink.md @@ -0,0 +1,8 @@ +--- +"@wso2is/console": patch +"@wso2is/i18n": patch +"@wso2is/myaccount": patch +"@wso2is/identity-apps-core": patch +--- + +(fix) Fix content of roles tabs in users and groups to convey that this tab is read only diff --git a/apps/console/src/features/groups/components/edit-group/edit-group-roles.tsx b/apps/console/src/features/groups/components/edit-group/edit-group-roles.tsx index 57e45179860..ffb2ec52009 100644 --- a/apps/console/src/features/groups/components/edit-group/edit-group-roles.tsx +++ b/apps/console/src/features/groups/components/edit-group/edit-group-roles.tsx @@ -76,9 +76,9 @@ export const EditGroupRoles: FunctionComponent = ( return ( @@ -89,10 +89,9 @@ export const EditGroupRoles: FunctionComponent = ( return ( - { t("console:manage.features.user.updateUser.roles.editRoles.heading") } + { t("console:manage.features.groups.edit.roles.heading") } - { /* TODO: Need to replace this with "View assigned roles for the group." */ } { t("console:manage.features.groups.edit.roles.subHeading") } { diff --git a/apps/console/src/features/users/components/user-roles-list.tsx b/apps/console/src/features/users/components/user-roles-list.tsx index d6de384068a..b7da112d802 100644 --- a/apps/console/src/features/users/components/user-roles-list.tsx +++ b/apps/console/src/features/users/components/user-roles-list.tsx @@ -76,9 +76,9 @@ export const UserRolesList: FunctionComponent = ( // TODO: Need to replace the i18N with the correct one. @@ -92,7 +92,6 @@ export const UserRolesList: FunctionComponent = ( { t("console:manage.features.user.updateUser.roles.editRoles.heading") } - { /* TODO: Need to replace this with "View assigned roles for the user." */ } { t("console:manage.features.user.updateUser.roles.editRoles.subHeading") } { diff --git a/modules/i18n/src/models/namespaces/console-ns.ts b/modules/i18n/src/models/namespaces/console-ns.ts index 231788ac017..49c6806480f 100644 --- a/modules/i18n/src/models/namespaces/console-ns.ts +++ b/modules/i18n/src/models/namespaces/console-ns.ts @@ -4407,7 +4407,11 @@ export interface ConsoleNS { heading: string; subHeading: string; }; + heading: string; subHeading: string; + placeHolders: { + emptyListPlaceholder: Placeholder; + }; }; }; list: { @@ -6113,6 +6117,9 @@ export interface ConsoleNS { 1: string; }; }; + placeholders: { + emptyPlaceholder: Placeholder; + }; heading: string; popups: { viewPermissions: string; diff --git a/modules/i18n/src/translations/en-US/portals/console.ts b/modules/i18n/src/translations/en-US/portals/console.ts index aa0e2882ccd..f917bb00ff1 100644 --- a/modules/i18n/src/translations/en-US/portals/console.ts +++ b/modules/i18n/src/translations/en-US/portals/console.ts @@ -8937,12 +8937,18 @@ export const console: ConsoleNS = { } }, roles: { + placeHolders: { + emptyListPlaceholder: { + subtitles: "There are no roles assigned to this group at the moment.", + title: "No Roles Assigned" + } + }, + heading: "Assigned Roles", addRolesModal: { heading: "Update Group Roles", subHeading: "Add new roles or remove existing roles assigned to the group." }, - subHeading: "Add or remove the roles this group is assigned with and note that this " + - "will affect performing certain tasks." + subHeading: "View assigned roles for the group." } }, list: { @@ -11552,6 +11558,12 @@ export const console: ConsoleNS = { header: "Are you sure?", message: "This action will modify the role of this user." }, + placeholders: { + emptyPlaceholder: { + title: "No roles assigned", + subtitles: "There are no roles assigned to the user at the moment." + } + }, heading: "Assigned Roles", popups: { viewPermissions: "View Permissions" @@ -11571,8 +11583,7 @@ export const console: ConsoleNS = { } }, searchPlaceholder: "Search Roles", - subHeading: "Add or remove the roles this user is assigned with and note that this " + - "will affect performing certain tasks." + subHeading: "View assigned roles for the user." }, notifications: { addUserRoles: { diff --git a/modules/i18n/src/translations/fr-FR/portals/console.ts b/modules/i18n/src/translations/fr-FR/portals/console.ts index 8e3b654d7c4..747c824ddcf 100755 --- a/modules/i18n/src/translations/fr-FR/portals/console.ts +++ b/modules/i18n/src/translations/fr-FR/portals/console.ts @@ -7315,13 +7315,19 @@ export const console: ConsoleNS = { } }, roles: { + placeHolders: { + emptyListPlaceholder: { + subtitles: "Il n'y a aucun rôle attribué à ce groupe pour le moment.", + title: "Aucun rôle attribué" + } + }, + heading: "Rôles attribués", addRolesModal: { heading: "Mettre à jour les rôles de groupe", subHeading: "Ajoutez de nouveaux rôles ou supprimez les rôles existants attribués " + "au groupe." }, - subHeading: "Ajoutez ou supprimez les rôles auxquels ce groupe est affecté et " + - "notez que cela affectera l'exécution de certaines tâches." + subHeading: "Afficher les rôles attribués pour le groupe." } }, list: { @@ -9839,6 +9845,12 @@ export const console: ConsoleNS = { header: "Êtes-vous sûr?", message: "Cette action modifiera le rôle de cet utilisateur." }, + placeholders: { + emptyPlaceholder: { + title: "Aucun rôle attribué", + subtitles: "Il n'y a aucun rôle attribué à l'utilisateur pour le moment." + } + }, heading: "Rôles assignés", popups: { viewPermissions: "Voir les permissions" @@ -9858,8 +9870,7 @@ export const console: ConsoleNS = { } }, searchPlaceholder: "Rechercher des rôles", - subHeading: "Ajouter ou supprimer le rôle auquel l'utilisateur est affecté. Notez que " + - "cela affectera également l'exécution de certaines tâches." + subHeading: "Afficher les rôles attribués pour l'utilisateur." }, notifications: { addUserRoles: { diff --git a/modules/i18n/src/translations/si-LK/portals/console.ts b/modules/i18n/src/translations/si-LK/portals/console.ts index 6827ea66ed7..22d44a739dd 100755 --- a/modules/i18n/src/translations/si-LK/portals/console.ts +++ b/modules/i18n/src/translations/si-LK/portals/console.ts @@ -7149,12 +7149,18 @@ export const console: ConsoleNS = { } }, roles: { + placeHolders: { + emptyListPlaceholder: { + subtitles: "මේ මොහොතේ මෙම කණ්ඩායමට කිසිදු භූමිකාවන් පවරා නොමැත.", + title: "කිසිදු භූමිකාවක් පවරා නොමැත" + } + }, + heading: "පවරා ඇති භූමිකාවන්", addRolesModal: { heading: "කණ්ඩායම් භූමිකාවන් යාවත්කාලීන කරන්න", subHeading: "නව භූමිකාවන් එක් කරන්න හෝ කණ්ඩායමට පවරා ඇති භූමිකාවන් ඉවත් කරන්න." }, - subHeading: "මෙම කණ්ඩායම විසින් පවරා ඇති භූමිකාවන් එකතු කිරීම හෝ ඉවත් කිරීම සහ " + - "මෙය ඇතැම් කාර්යයන් ඉටු කිරීමට බලපානු ඇති බව සලකන්න." + subHeading: "කණ්ඩායම සඳහා පවරා ඇති භූමිකාවන් බලන්න." } }, list: { @@ -9603,6 +9609,12 @@ export const console: ConsoleNS = { header: "ඔබට විශ්වාසද?", message: "මෙම ක්‍රියාව මෙම පරිශීලකයාගේ භූමිකාව වෙනස් කරයි." }, + placeholders: { + emptyPlaceholder: { + title: "කිසිදු භූමිකාවක් පවරා නොමැත", + subtitles: "මේ මොහොතේ පරිශීලකයාට කිසිදු භූමිකාවන් නොමැත." + } + }, heading: "පවරා ඇති භූමිකාවන්", popups: { viewPermissions: "අවසර බලන්න" @@ -9622,8 +9634,7 @@ export const console: ConsoleNS = { } }, searchPlaceholder: "සෙවුම් භූමිකාවන්", - subHeading: "මෙම පරිශීලකයාට පවරා ඇති භූමිකාවන් එකතු කිරීම හෝ ඉවත් කිරීම සහ " + - "මෙය ඇතැම් කාර්යයන් ඉටු කිරීමට බලපානු ඇති බව සලකන්න." + subHeading: "පරිශීලකයා සඳහා පවරා ඇති භූමිකාවන් බලන්න." }, notifications: { addUserRoles: {