From 1b429409d5c1abe2f7311a6a7796ca6944bcaa7e Mon Sep 17 00:00:00 2001 From: aleckvincent Date: Mon, 25 Mar 2024 16:25:04 +0100 Subject: [PATCH] enable ActionSurveillance item for timeline --- .../pam/mission/timeline/item/timeline-item-surveillance.tsx | 2 +- frontend/src/pam/mission/timeline/item/timeline-item.tsx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/pam/mission/timeline/item/timeline-item-surveillance.tsx b/frontend/src/pam/mission/timeline/item/timeline-item-surveillance.tsx index 98bc4ef39..545b9fab1 100644 --- a/frontend/src/pam/mission/timeline/item/timeline-item-surveillance.tsx +++ b/frontend/src/pam/mission/timeline/item/timeline-item-surveillance.tsx @@ -2,7 +2,7 @@ import React from 'react' const ActionSurveillance: React.FC = () => { // Implementation for ActionSurveillance - return null + return
Hello Env Surveillance
} export default ActionSurveillance diff --git a/frontend/src/pam/mission/timeline/item/timeline-item.tsx b/frontend/src/pam/mission/timeline/item/timeline-item.tsx index 40b7fee92..48381f1bd 100644 --- a/frontend/src/pam/mission/timeline/item/timeline-item.tsx +++ b/frontend/src/pam/mission/timeline/item/timeline-item.tsx @@ -8,6 +8,7 @@ import ActionFishControl from "./timeline-item-control-fish.tsx"; import ActionNavControl from "./timeline-item-control-nav.tsx"; import ActionStatus from "./timeline-item-status.tsx"; import ActionNote from "./timeline-item-note.tsx"; +import ActionSurveillance from './timeline-item-surveillance.tsx' export interface MissionTimelineItemProps { action: Action @@ -45,6 +46,9 @@ const getActionComponent = (action: Action) => { if (action.type === ActionTypeEnum.CONTROL) { return ActionEnvControl } + if (action.type === ActionTypeEnum.SURVEILLANCE) { + return ActionSurveillance + } } else if (action.source === MissionSourceEnum.MONITORFISH) { if (action.type === ActionTypeEnum.CONTROL) { return ActionFishControl