Skip to content

Commit

Permalink
Merge pull request #7586 from Yasasr1/userstore-console-admin
Browse files Browse the repository at this point in the history
Show secondary userstore dropdown in the sub-organization console settings.
  • Loading branch information
Yasasr1 authored Feb 10, 2025
2 parents 722e48b + 8ea1855 commit 95193da
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/happy-terms-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/admin.console-settings.v1": patch
---

Show secondary userstore dropdown in the sub-organization console settings.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const AdministratorsList: FunctionComponent<AdministratorsListProps> = (
"consoleSettings.invitedExternalAdmins"
);

const { isSubOrganization, isFirstLevelOrganization, isSuperOrganization } = useGetCurrentOrganizationType();
const { isSubOrganization, isFirstLevelOrganization } = useGetCurrentOrganizationType();
const { unassignAdministratorRoles } = useBulkAssignAdministratorRoles();

const [ listOffset, setListOffset ] = useState<number>(0);
Expand Down Expand Up @@ -427,20 +427,16 @@ const AdministratorsList: FunctionComponent<AdministratorsListProps> = (
);
}

if (isFirstLevelOrganization() || isSuperOrganization()) {
return (
<Dropdown
data-testid="user-mgt-user-list-userstore-dropdown"
selection
options={ availableUserStores }
onChange={ handleSelectedUserStoreChange }
value={ selectedUserStore }
defaultValue={ primaryUserStoreDomainName }
/>
);
}

return null;
return (
<Dropdown
data-testid="user-mgt-user-list-userstore-dropdown"
selection
options={ availableUserStores }
onChange={ handleSelectedUserStoreChange }
value={ selectedUserStore }
defaultValue={ primaryUserStoreDomainName }
/>
);
};

return (
Expand Down

0 comments on commit 95193da

Please sign in to comment.