From 91c37a2a9e8f9957f595866ba7564afa45e2c961 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Tue, 28 May 2024 20:10:15 +0100 Subject: [PATCH] refactor: Update MonitorSecretService to use MonitorSecret model --- .../src/Utils/Breadcrumbs/SettingsBreadcrumbs.ts | 13 +++++++------ Dashboard/src/Utils/RouteMap.ts | 8 ++++---- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Dashboard/src/Utils/Breadcrumbs/SettingsBreadcrumbs.ts b/Dashboard/src/Utils/Breadcrumbs/SettingsBreadcrumbs.ts index 4bfd1eb31f..16ceb7adc8 100644 --- a/Dashboard/src/Utils/Breadcrumbs/SettingsBreadcrumbs.ts +++ b/Dashboard/src/Utils/Breadcrumbs/SettingsBreadcrumbs.ts @@ -1,7 +1,7 @@ -import Dictionary from 'Common/Types/Dictionary'; import PageMap from '../PageMap'; -import Link from 'Common/Types/Link'; import { BuildBreadcrumbLinksByTitles } from './Helper'; +import Dictionary from 'Common/Types/Dictionary'; +import Link from 'Common/Types/Link'; export function getSettingsBreadcrumbs(path: string): Array | undefined { const breadcrumpLinksMap: Dictionary = { @@ -23,10 +23,11 @@ export function getSettingsBreadcrumbs(path: string): Array | undefined { PageMap.SETTINGS_MONITOR_CUSTOM_FIELDS, ['Project', 'Settings', 'Monitor Custom Fields'] ), - ...BuildBreadcrumbLinksByTitles( - PageMap.SETTINGS_MONITOR_SECRETS, - ['Project', 'Settings', 'Monitor Secrets'] - ), + ...BuildBreadcrumbLinksByTitles(PageMap.SETTINGS_MONITOR_SECRETS, [ + 'Project', + 'Settings', + 'Monitor Secrets', + ]), ...BuildBreadcrumbLinksByTitles( PageMap.SETTINGS_STATUS_PAGE_CUSTOM_FIELDS, ['Project', 'Settings', 'Status Page Custom Fields'] diff --git a/Dashboard/src/Utils/RouteMap.ts b/Dashboard/src/Utils/RouteMap.ts index 7c88874637..0adeffcc70 100644 --- a/Dashboard/src/Utils/RouteMap.ts +++ b/Dashboard/src/Utils/RouteMap.ts @@ -1,10 +1,10 @@ -import Project from 'Model/Models/Project'; -import Route from 'Common/Types/API/Route'; -import Dictionary from 'Common/Types/Dictionary'; -import ProjectUtil from 'CommonUI/src/Utils/Project'; import PageMap from './PageMap'; import RouteParams from './RouteParams'; +import Route from 'Common/Types/API/Route'; +import Dictionary from 'Common/Types/Dictionary'; import ObjectID from 'Common/Types/ObjectID'; +import ProjectUtil from 'CommonUI/src/Utils/Project'; +import Project from 'Model/Models/Project'; export const MonitorsRoutePath: Dictionary = { [PageMap.MONITORS_INOPERATIONAL]: 'inoperational',