refactor: Update MonitorSecretService to use MonitorSecret model

This commit is contained in:
Simon Larsen 2024-05-28 20:10:15 +01:00
parent 937879aa68
commit 91c37a2a9e
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA
2 changed files with 11 additions and 10 deletions

View File

@ -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<Link> | undefined {
const breadcrumpLinksMap: Dictionary<Link[]> = {
@ -23,10 +23,11 @@ export function getSettingsBreadcrumbs(path: string): Array<Link> | 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']

View File

@ -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<string> = {
[PageMap.MONITORS_INOPERATIONAL]: 'inoperational',