Skip to content

Commit

Permalink
break circular dep
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Feb 7, 2023
1 parent e96a664 commit 44c14f7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 0 additions & 8 deletions src/app/Settings/ChartCardsConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
8 changes: 8 additions & 0 deletions src/app/Shared/Services/Api.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
3 changes: 2 additions & 1 deletion src/app/Shared/Services/Settings.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 44c14f7

Please sign in to comment.