Skip to content

Commit

Permalink
Merge pull request #4253 from pavinduLakshan/is_17017
Browse files Browse the repository at this point in the history
Fix incorrect i18n keys in assigned groups UI in roles section
  • Loading branch information
pavinduLakshan authored Oct 20, 2023
2 parents 0fcaa83 + 84f4f91 commit f1e3e58
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/great-laws-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/console": patch
---

Fix incorrect i18n keys in assigned groups UI in roles section
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2021, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
* Copyright (c) 2021-2023, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -729,7 +729,7 @@ export const RoleGroupsList: FunctionComponent<RoleGroupsPropsInterface> = (
<EmphasizedSegment>
<EmptyPlaceholder
data-testid="role-mgt-empty-groups-list"
title={ t("console:manage.features.roles.edit.groups." +
title={ t("console:manage.features.roles.edit.groups.placeholders." +
"emptyPlaceholder.title") }
subtitle={ [
t("console:manage.features.roles.edit.groups." +
Expand All @@ -742,7 +742,7 @@ export const RoleGroupsList: FunctionComponent<RoleGroupsPropsInterface> = (
icon="plus"
onClick={ handleOpenAddNewGroupModal }
>
{ t("console:manage.features.roles.edit.groups." +
{ t("console:manage.features.roles.edit.groups.placeholders." +
"emptyPlaceholder.action") }
</PrimaryButton>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2022, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
* Copyright (c) 2022-2023, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
Expand Down Expand Up @@ -686,10 +686,10 @@ export const RoleGroupsList: FunctionComponent<RoleGroupsPropsInterface> = (
<EmphasizedSegment>
<EmptyPlaceholder
data-testid="role-mgt-empty-groups-list"
title={ t("console:manage.features.roles.edit.groups." +
title={ t("console:manage.features.roles.edit.groups.placeholders." +
"emptyPlaceholder.title") }
subtitle={ [
t("console:manage.features.roles.edit.groups." +
t("console:manage.features.roles.edit.groups.placeholders." +
"emptyPlaceholder.subtitles")
] }
action={
Expand All @@ -700,7 +700,7 @@ export const RoleGroupsList: FunctionComponent<RoleGroupsPropsInterface> = (
onClick={ handleOpenAddNewGroupModal }
>
{ t("console:manage.features.roles.edit.groups." +
"emptyPlaceholder.action") }
"placeholders.emptyPlaceholder.action") }
</PrimaryButton>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,11 +742,11 @@ export const RoleGroupsList: FunctionComponent<RoleGroupsPropsInterface> = (
<EmphasizedSegment>
<EmptyPlaceholder
data-testid="role-mgt-empty-groups-list"
title={ t("console:manage.features.roles.edit.groups." +
title={ t("console:manage.features.roles.edit.groups.placeholders." +
"emptyPlaceholder.title") }
subtitle={ [
t("console:manage.features.roles.edit.groups." +
"emptyPlaceholder.subtitles")
t("console:manage.features.roles.edit.groups.placeholders." +
"emptyPlaceholder.subtitles.0")
] }
action={
!isReadOnly && (
Expand All @@ -756,7 +756,7 @@ export const RoleGroupsList: FunctionComponent<RoleGroupsPropsInterface> = (
onClick={ handleOpenAddNewGroupModal }
>
{ t("console:manage.features.roles.edit.groups." +
"emptyPlaceholder.action") }
"placeholders.emptyPlaceholder.action") }
</PrimaryButton>
)
}
Expand Down

0 comments on commit f1e3e58

Please sign in to comment.