Skip to content

Commit a5c3efd

Browse files
committed
fix: Update deployment status display with workflow node status title
1 parent a716d7f commit a5c3efd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Shared/Components/CICDHistory/TriggerDetails.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ import {
2222
WorkflowStageStatusType,
2323
CurrentStatusIconProps,
2424
} from './types'
25-
import { getFormattedTriggerTime, sanitizeWorkflowExecutionStages, getIconFromWorkflowStageStatusType } from './utils'
25+
import {
26+
getFormattedTriggerTime,
27+
sanitizeWorkflowExecutionStages,
28+
getIconFromWorkflowStageStatusType,
29+
getWorkflowNodeStatusTitle,
30+
} from './utils'
2631
import { cancelCiTrigger, cancelPrePostCdTrigger } from './service'
2732
import {
2833
DEFAULT_CLUSTER_ID,
@@ -56,7 +61,7 @@ const Finished = memo(({ status, finishedOn, artifact, type, executionInfo }: Fi
5661
className={`${status} fs-13 fw-6 ${TERMINAL_STATUS_COLOR_CLASS_MAP[status.toLowerCase()] || 'cn-5'}`}
5762
data-testid="deployment-status-text"
5863
>
59-
{status?.toLowerCase() === 'cancelled' ? 'Aborted' : status}
64+
{getWorkflowNodeStatusTitle(status)}
6065
</div>
6166
)
6267
}

0 commit comments

Comments
 (0)