Skip to content

Commit

Permalink
Merge pull request #7413 from ShanChathusanda93/sub-org-app-role-aud-…
Browse files Browse the repository at this point in the history
…change-branch

Enable role add and audience change capability for sub org apps
  • Loading branch information
ShanChathusanda93 authored Jan 26, 2025
2 parents 5fcbc78 + 4898382 commit 131b72f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-years-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.roles.v2": patch
---

enable role audience change for sub org apps
6 changes: 1 addition & 5 deletions features/admin.roles.v2/components/application-roles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ export const ApplicationRoles: FunctionComponent<ApplicationRolesSettingsInterfa
"rolesV2.application")
}
data-componentid={ `${ componentId }-application-audience-checkbox` }
disabled={ isReadOnly }
/>
</Grid.Column>
<Grid.Column width={ 6 }>
Expand All @@ -346,7 +345,6 @@ export const ApplicationRoles: FunctionComponent<ApplicationRolesSettingsInterfa
fluid
data-componentid="create-application-role-button"
onClick={ handleAddNewRoleWizardClick }
disabled={ isReadOnly }
>
<Icon name="plus"/>
{
Expand All @@ -370,7 +368,6 @@ export const ApplicationRoles: FunctionComponent<ApplicationRolesSettingsInterfa
"rolesV2.organization")
}
data-componentid={ `${ componentId }-organization-audience-checkbox` }
disabled={ isReadOnly }
/>
</Grid.Column>
</Grid.Row>
Expand Down Expand Up @@ -406,7 +403,6 @@ export const ApplicationRoles: FunctionComponent<ApplicationRolesSettingsInterfa
loading={ isLoading }
options={ roleList }
value={ selectedRoles ?? [] }
disabled = { isReadOnly }
data-componentid={ `${ componentId }-assigned-roles-list` }
getOptionLabel={
(role: BasicRoleInterface) => role.name
Expand Down Expand Up @@ -466,7 +462,7 @@ export const ApplicationRoles: FunctionComponent<ApplicationRolesSettingsInterfa
</Grid.Row>
) : null }
{
!isReadOnly && (
(
<Grid.Row className="mt-4">
<Grid.Column width={ 16 }>
<PrimaryButton
Expand Down

0 comments on commit 131b72f

Please sign in to comment.