From 26b7036b7916c83bac3dcc02d37fc12031448a06 Mon Sep 17 00:00:00 2001 From: Kevin Silva Date: Mon, 15 Jan 2024 18:14:46 +0100 Subject: [PATCH] SONAR-21428 - User list in security with provider adopts new UI --- .../src/main/js/apps/groups/GroupsApp.tsx | 1 - .../js/apps/users/__tests__/UsersApp-it.tsx | 6 +- .../users/components/UserListItemIdentity.tsx | 5 +- .../js/components/controls/ManagedFilter.tsx | 55 ++++++------------- 4 files changed, 23 insertions(+), 44 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/groups/GroupsApp.tsx b/server/sonar-web/src/main/js/apps/groups/GroupsApp.tsx index b03999481ba..7a37e33d652 100644 --- a/server/sonar-web/src/main/js/apps/groups/GroupsApp.tsx +++ b/server/sonar-web/src/main/js/apps/groups/GroupsApp.tsx @@ -61,7 +61,6 @@ export default function GroupsApp() { loading={isLoading} managed={managed} setManaged={setManaged} - miui /> -
{user.externalLogin} -
+ ); } diff --git a/server/sonar-web/src/main/js/components/controls/ManagedFilter.tsx b/server/sonar-web/src/main/js/components/controls/ManagedFilter.tsx index b0444143794..1f3e82c8f2a 100644 --- a/server/sonar-web/src/main/js/components/controls/ManagedFilter.tsx +++ b/server/sonar-web/src/main/js/components/controls/ManagedFilter.tsx @@ -21,18 +21,16 @@ import { ToggleButton } from 'design-system'; import * as React from 'react'; import { translate } from '../../helpers/l10n'; import { Provider } from '../../types/types'; -import ButtonToggle from './ButtonToggle'; interface ManagedFilterProps { manageProvider: Provider | undefined; loading: boolean; managed: boolean | undefined; - miui?: boolean; setManaged: (managed: boolean | undefined) => void; } export function ManagedFilter(props: Readonly) { - const { manageProvider, loading, managed, miui } = props; + const { manageProvider, loading, managed } = props; if (manageProvider === undefined) { return null; @@ -40,41 +38,22 @@ export function ManagedFilter(props: Readonly) { return (
- {miui ? ( - { - if (filterOption === 'all') { - props.setManaged(undefined); - } else { - props.setManaged(filterOption); - } - }} - /> - ) : ( - { - if (filterOption === 'all') { - props.setManaged(undefined); - } else { - props.setManaged(filterOption as boolean); - } - }} - /> - )} + { + if (filterOption === 'all') { + props.setManaged(undefined); + } else { + props.setManaged(filterOption); + } + }} + />
); } -- 2.39.5