mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +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 { PageContent } from 'component/common/PageContent/PageContent';
|
||||||
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
||||||
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
||||||
import { useUiFlag } from 'hooks/useUiFlag';
|
|
||||||
import { OidcAuth } from './OidcAuth/OidcAuth';
|
import { OidcAuth } from './OidcAuth/OidcAuth';
|
||||||
import { SamlAuth } from './SamlAuth/SamlAuth';
|
import { SamlAuth } from './SamlAuth/SamlAuth';
|
||||||
import { ScimSettings } from './ScimSettings/ScimSettings';
|
import { ScimSettings } from './ScimSettings/ScimSettings';
|
||||||
@ -39,7 +38,7 @@ export const AuthSettings = () => {
|
|||||||
(item) => uiConfig.flags?.googleAuthEnabled || item.label !== 'Google',
|
(item) => uiConfig.flags?.googleAuthEnabled || item.label !== 'Google',
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isEnterprise() && useUiFlag('scimApi')) {
|
if (isEnterprise()) {
|
||||||
tabs.push({
|
tabs.push({
|
||||||
label: 'SCIM',
|
label: 'SCIM',
|
||||||
component: <ScimSettings />,
|
component: <ScimSettings />,
|
||||||
|
@ -3,7 +3,6 @@ import { formatApiPath } from 'utils/formatPath';
|
|||||||
import handleErrorResponses from '../httpErrorResponseHandler';
|
import handleErrorResponses from '../httpErrorResponseHandler';
|
||||||
import { useConditionalSWR } from '../useConditionalSWR/useConditionalSWR';
|
import { useConditionalSWR } from '../useConditionalSWR/useConditionalSWR';
|
||||||
import useUiConfig from '../useUiConfig/useUiConfig';
|
import useUiConfig from '../useUiConfig/useUiConfig';
|
||||||
import { useUiFlag } from 'hooks/useUiFlag';
|
|
||||||
|
|
||||||
const ENDPOINT = 'api/admin/scim-settings';
|
const ENDPOINT = 'api/admin/scim-settings';
|
||||||
|
|
||||||
@ -21,10 +20,9 @@ const DEFAULT_DATA: ScimSettings = {
|
|||||||
|
|
||||||
export const useScimSettings = () => {
|
export const useScimSettings = () => {
|
||||||
const { isEnterprise } = useUiConfig();
|
const { isEnterprise } = useUiConfig();
|
||||||
const scimEnabled = useUiFlag('scimApi');
|
|
||||||
|
|
||||||
const { data, error, mutate } = useConditionalSWR<ScimSettings>(
|
const { data, error, mutate } = useConditionalSWR<ScimSettings>(
|
||||||
isEnterprise() && scimEnabled,
|
isEnterprise(),
|
||||||
DEFAULT_DATA,
|
DEFAULT_DATA,
|
||||||
formatApiPath(ENDPOINT),
|
formatApiPath(ENDPOINT),
|
||||||
fetcher,
|
fetcher,
|
||||||
|
@ -84,7 +84,6 @@ export type UiFlags = {
|
|||||||
disableShowContextFieldSelectionValues?: boolean;
|
disableShowContextFieldSelectionValues?: boolean;
|
||||||
projectOverviewRefactorFeedback?: boolean;
|
projectOverviewRefactorFeedback?: boolean;
|
||||||
featureLifecycle?: boolean;
|
featureLifecycle?: boolean;
|
||||||
scimApi?: boolean;
|
|
||||||
manyStrategiesPagination?: boolean;
|
manyStrategiesPagination?: boolean;
|
||||||
enableLegacyVariants?: boolean;
|
enableLegacyVariants?: boolean;
|
||||||
navigationSidebar?: boolean;
|
navigationSidebar?: boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user