From cf5e30aa73fde0b9cf84aac62b80b1bfcba6fe99 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Fri, 16 Dec 2022 10:00:42 -0500 Subject: [PATCH] only show Production level in devserver setup --- src/app/Settings/FeatureLevels.tsx | 13 ++++++++++--- src/app/Settings/Settings.tsx | 2 +- src/app/Shared/FeatureFlag/FeatureFlag.tsx | 2 +- src/app/Shared/Services/Settings.service.tsx | 2 +- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/app/Settings/FeatureLevels.tsx b/src/app/Settings/FeatureLevels.tsx index 6bf1294db4..b167ccf4c8 100644 --- a/src/app/Settings/FeatureLevels.tsx +++ b/src/app/Settings/FeatureLevels.tsx @@ -71,9 +71,16 @@ const Component = () => { diff --git a/src/app/Settings/Settings.tsx b/src/app/Settings/Settings.tsx index ec73329646..c3823bd723 100644 --- a/src/app/Settings/Settings.tsx +++ b/src/app/Settings/Settings.tsx @@ -52,13 +52,13 @@ export interface SettingsProps {} export const Settings: React.FunctionComponent = (props) => { const settings = [ - FeatureLevels, NotificationControl, AutomatedAnalysisConfig, CredentialsStorage, DeletionDialogControl, WebSocketDebounce, AutoRefresh, + FeatureLevels, ].map((c) => ({ title: c.title, description: c.description, diff --git a/src/app/Shared/FeatureFlag/FeatureFlag.tsx b/src/app/Shared/FeatureFlag/FeatureFlag.tsx index 0f463b780a..c5db262b31 100644 --- a/src/app/Shared/FeatureFlag/FeatureFlag.tsx +++ b/src/app/Shared/FeatureFlag/FeatureFlag.tsx @@ -36,7 +36,7 @@ * SOFTWARE. */ import * as React from 'react'; -import { ServiceContext } from '../Services/Services'; +import { ServiceContext } from '@app/Shared/Services/Services'; import { useSubscriptions } from '@app/utils/useSubscriptions'; export enum FeatureLevel { diff --git a/src/app/Shared/Services/Settings.service.tsx b/src/app/Shared/Services/Settings.service.tsx index cb930125db..0a2aa2d703 100644 --- a/src/app/Shared/Services/Settings.service.tsx +++ b/src/app/Shared/Services/Settings.service.tsx @@ -39,7 +39,7 @@ import { DeleteWarningType } from '@app/Modal/DeleteWarningUtils'; import { getFromLocalStorage, saveToLocalStorage } from '@app/utils/LocalStorage'; import { BehaviorSubject, Observable } from 'rxjs'; -import { FeatureLevel } from '../FeatureFlag/FeatureFlag'; +import { FeatureLevel } from '@app/Shared/FeatureFlag/FeatureFlag'; import { AutomatedAnalysisRecordingConfig, automatedAnalysisRecordingName,