mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
refactor: Update MonitorSecretService to use MonitorSecret model
This commit is contained in:
parent
937879aa68
commit
91c37a2a9e
@ -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']
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user