mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: SCIM UI flag removal (#7856)
We overlooked removing this flag from UI
This commit is contained in:
		
							parent
							
								
									24e25cb615
								
							
						
					
					
						commit
						3f00d3132a
					
				| @ -2,7 +2,6 @@ import { Alert, Tab, Tabs } from '@mui/material'; | ||||
| import { PageContent } from 'component/common/PageContent/PageContent'; | ||||
| import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; | ||||
| import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig'; | ||||
| import { useUiFlag } from 'hooks/useUiFlag'; | ||||
| import { OidcAuth } from './OidcAuth/OidcAuth'; | ||||
| import { SamlAuth } from './SamlAuth/SamlAuth'; | ||||
| import { ScimSettings } from './ScimSettings/ScimSettings'; | ||||
| @ -39,7 +38,7 @@ export const AuthSettings = () => { | ||||
|         (item) => uiConfig.flags?.googleAuthEnabled || item.label !== 'Google', | ||||
|     ); | ||||
| 
 | ||||
|     if (isEnterprise() && useUiFlag('scimApi')) { | ||||
|     if (isEnterprise()) { | ||||
|         tabs.push({ | ||||
|             label: 'SCIM', | ||||
|             component: <ScimSettings />, | ||||
|  | ||||
| @ -3,7 +3,6 @@ import { formatApiPath } from 'utils/formatPath'; | ||||
| import handleErrorResponses from '../httpErrorResponseHandler'; | ||||
| import { useConditionalSWR } from '../useConditionalSWR/useConditionalSWR'; | ||||
| import useUiConfig from '../useUiConfig/useUiConfig'; | ||||
| import { useUiFlag } from 'hooks/useUiFlag'; | ||||
| 
 | ||||
| const ENDPOINT = 'api/admin/scim-settings'; | ||||
| 
 | ||||
| @ -21,10 +20,9 @@ const DEFAULT_DATA: ScimSettings = { | ||||
| 
 | ||||
| export const useScimSettings = () => { | ||||
|     const { isEnterprise } = useUiConfig(); | ||||
|     const scimEnabled = useUiFlag('scimApi'); | ||||
| 
 | ||||
|     const { data, error, mutate } = useConditionalSWR<ScimSettings>( | ||||
|         isEnterprise() && scimEnabled, | ||||
|         isEnterprise(), | ||||
|         DEFAULT_DATA, | ||||
|         formatApiPath(ENDPOINT), | ||||
|         fetcher, | ||||
|  | ||||
| @ -84,7 +84,6 @@ export type UiFlags = { | ||||
|     disableShowContextFieldSelectionValues?: boolean; | ||||
|     projectOverviewRefactorFeedback?: boolean; | ||||
|     featureLifecycle?: boolean; | ||||
|     scimApi?: boolean; | ||||
|     manyStrategiesPagination?: boolean; | ||||
|     enableLegacyVariants?: boolean; | ||||
|     navigationSidebar?: boolean; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user