mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
refactor: Update telemetry exception view layout components
This commit is contained in:
parent
3c296f72d8
commit
92e519c49e
@ -18,7 +18,7 @@ import ExceptionsTable from "../../../../../Components/Exceptions/ExceptionsTabl
|
||||
const MetricsTablePage: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(2);
|
||||
|
||||
const [telemetryService, setTelemetryService] =
|
||||
useState<TelemetryService | null>(null);
|
||||
|
@ -18,7 +18,7 @@ import ExceptionsTable from "../../../../../Components/Exceptions/ExceptionsTabl
|
||||
const MetricsTablePage: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(2);
|
||||
|
||||
const [telemetryService, setTelemetryService] =
|
||||
useState<TelemetryService | null>(null);
|
||||
|
@ -18,7 +18,7 @@ import ExceptionsTable from "../../../../../Components/Exceptions/ExceptionsTabl
|
||||
const MetricsTablePage: FunctionComponent<
|
||||
PageComponentProps
|
||||
> = (): ReactElement => {
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(1);
|
||||
const modelId: ObjectID = Navigation.getLastParamAsObjectID(2);
|
||||
|
||||
const [telemetryService, setTelemetryService] =
|
||||
useState<TelemetryService | null>(null);
|
||||
|
@ -419,7 +419,7 @@ const TelemetryRoutes: FunctionComponent<ComponentProps> = (
|
||||
|
||||
<PageRoute
|
||||
path={RouteUtil.getLastPathForKey(
|
||||
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS_UNRESOLVED,
|
||||
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS_UNRESOLVED, 2
|
||||
)}
|
||||
element={
|
||||
<Suspense fallback={Loader}>
|
||||
@ -437,7 +437,7 @@ const TelemetryRoutes: FunctionComponent<ComponentProps> = (
|
||||
|
||||
<PageRoute
|
||||
path={RouteUtil.getLastPathForKey(
|
||||
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS_RESOLVED,
|
||||
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS_RESOLVED,2
|
||||
)}
|
||||
element={
|
||||
<Suspense fallback={Loader}>
|
||||
@ -455,7 +455,7 @@ const TelemetryRoutes: FunctionComponent<ComponentProps> = (
|
||||
|
||||
<PageRoute
|
||||
path={RouteUtil.getLastPathForKey(
|
||||
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS_ARCHIVED,
|
||||
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS_ARCHIVED,2
|
||||
)}
|
||||
element={
|
||||
<Suspense fallback={Loader}>
|
||||
|
@ -108,6 +108,7 @@ export function getTelemetryBreadcrumbs(path: string): Array<Link> | undefined {
|
||||
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS,
|
||||
["Project", "Telemetry", "Services", "View Service", "Exceptions"],
|
||||
),
|
||||
|
||||
...BuildBreadcrumbLinksByTitles(
|
||||
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS_UNRESOLVED,
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user