@@ -6,7 +6,7 @@ import { format } from 'date-fns';
66import { Box , ColumnLayout , Container , Header , Loader , NavigateLink , StatusIndicator } from 'components' ;
77
88import { DATE_TIME_FORMAT } from 'consts' ;
9- import { formatBackend , getStatusIconType } from 'libs/fleet' ;
9+ import { formatBackend , getStatusIconColor , getStatusIconType } from 'libs/fleet' ;
1010import { getHealthStatusIconType , prettyEnumValue } from 'libs/instance' ;
1111import { formatResources } from 'libs/resources' ;
1212import { ROUTES } from 'routes' ;
@@ -52,9 +52,7 @@ export const InstanceDetails = () => {
5252 < Box variant = "awsui-key-label" > { t ( 'fleets.fleet' ) } </ Box >
5353 < div >
5454 { data . fleet_name && data . fleet_id ? (
55- < NavigateLink
56- href = { ROUTES . FLEETS . DETAILS . FORMAT ( data . project_name , data . fleet_id ) }
57- >
55+ < NavigateLink href = { ROUTES . FLEETS . DETAILS . FORMAT ( data . project_name , data . fleet_id ) } >
5856 { data . fleet_name }
5957 </ NavigateLink >
6058 ) : (
@@ -66,7 +64,10 @@ export const InstanceDetails = () => {
6664 < div >
6765 < Box variant = "awsui-key-label" > { t ( 'fleets.instances.status' ) } </ Box >
6866 < div >
69- < StatusIndicator type = { getStatusIconType ( data . status ) } >
67+ < StatusIndicator
68+ type = { getStatusIconType ( data . status ) }
69+ colorOverride = { getStatusIconColor ( data . status ) }
70+ >
7071 { ( data . status === 'idle' || data . status === 'busy' ) &&
7172 data . total_blocks !== null &&
7273 data . total_blocks > 1
@@ -98,17 +99,13 @@ export const InstanceDetails = () => {
9899
99100 < div >
100101 < Box variant = "awsui-key-label" > { t ( 'fleets.instances.finished_at' ) } </ Box >
101- < div >
102- { data . finished_at ? format ( new Date ( data . finished_at ) , DATE_TIME_FORMAT ) : '-' }
103- </ div >
102+ < div > { data . finished_at ? format ( new Date ( data . finished_at ) , DATE_TIME_FORMAT ) : '-' } </ div >
104103 </ div >
105104
106105 { data . termination_reason && (
107106 < div >
108107 < Box variant = "awsui-key-label" > { t ( 'fleets.instances.termination_reason' ) } </ Box >
109- < div >
110- { data . termination_reason_message ?? prettyEnumValue ( data . termination_reason ) }
111- </ div >
108+ < div > { data . termination_reason_message ?? prettyEnumValue ( data . termination_reason ) } </ div >
112109 </ div >
113110 ) }
114111
0 commit comments