diff --git a/src/app/Settings/ChartCardsConfig.tsx b/src/app/Settings/ChartCardsConfig.tsx index a36caccdbd..5a9b485132 100644 --- a/src/app/Settings/ChartCardsConfig.tsx +++ b/src/app/Settings/ChartCardsConfig.tsx @@ -98,11 +98,3 @@ export const ChartCardsConfig: UserSetting = { content: Component, category: 'SETTINGS.CATEGORIES.DASHBOARD', }; - -export interface ChartControllerConfig { - minRefresh: number; -} - -export const defaultChartControllerConfig: ChartControllerConfig = { - minRefresh: 10, -}; diff --git a/src/app/Shared/Services/Api.service.tsx b/src/app/Shared/Services/Api.service.tsx index c241aa4b75..3d8312770a 100644 --- a/src/app/Shared/Services/Api.service.tsx +++ b/src/app/Shared/Services/Api.service.tsx @@ -1415,6 +1415,14 @@ export const defaultAutomatedAnalysisRecordingConfig: AutomatedAnalysisRecording maxAge: 0, }; +export interface ChartControllerConfig { + minRefresh: number; +} + +export const defaultChartControllerConfig: ChartControllerConfig = { + minRefresh: 10, +}; + // New target specific archived recording apis now enforce a non-empty target field // The placeholder targetId for uploaded (non-target) recordings is "uploads" export const UPLOADS_SUBDIRECTORY = 'uploads'; diff --git a/src/app/Shared/Services/Settings.service.tsx b/src/app/Shared/Services/Settings.service.tsx index 9b08bc1544..57c570db97 100644 --- a/src/app/Shared/Services/Settings.service.tsx +++ b/src/app/Shared/Services/Settings.service.tsx @@ -37,14 +37,15 @@ */ import { DeleteOrDisableWarningType } from '@app/Modal/DeleteWarningUtils'; -import { ChartControllerConfig, defaultChartControllerConfig } from '@app/Settings/ChartCardsConfig'; import { getFromLocalStorage, saveToLocalStorage } from '@app/utils/LocalStorage'; import { DatetimeFormat, defaultDatetimeFormat } from '@i18n/datetime'; import { BehaviorSubject, Observable } from 'rxjs'; import { AutomatedAnalysisRecordingConfig, automatedAnalysisRecordingName, + ChartControllerConfig, defaultAutomatedAnalysisRecordingConfig, + defaultChartControllerConfig, RecordingAttributes, } from './Api.service'; import { NotificationCategory } from './NotificationChannel.service';