File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
src/components/app/details/appDetails Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -492,9 +492,6 @@ export const Details: React.FC<DetailsType> = ({
492
492
deploymentTriggerTime : deploymentStatusDetailRes . result . deploymentStartedOn ,
493
493
deploymentEndTime : deploymentStatusDetailRes . result . deploymentFinishedOn ,
494
494
triggeredBy : deploymentStatusDetailRes . result . triggeredBy ,
495
- statusLastFetchedAt : deploymentStatusDetailRes . result . statusLastFetchedAt
496
- ? handleUTCTime ( deploymentStatusDetailRes . result . statusLastFetchedAt , true )
497
- : '' ,
498
495
} )
499
496
} else {
500
497
processDeploymentStatusData ( deploymentStatusDetailRes . result )
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import {
22
22
ConditionalWrap ,
23
23
DeploymentAppTypes ,
24
24
getIsManualApprovalConfigured ,
25
+ handleUTCTime ,
25
26
ReleaseMode ,
26
27
showError ,
27
28
Tooltip ,
@@ -169,6 +170,10 @@ export const SourceInfo = ({
169
170
const renderDevtronAppsEnvironmentSelector = ( environment ) => {
170
171
// If moving to a component then move getIsApprovalConfigured with it as well with memoization.
171
172
const isApprovalConfigured = getIsApprovalConfigured ( )
173
+ const lastSnapshotTime = appDetails ?. resourceTree ?. lastSnapshotTime ? handleUTCTime (
174
+ appDetails . resourceTree . lastSnapshotTime ,
175
+ true ,
176
+ ) : ''
172
177
173
178
return (
174
179
< div className = "flex left w-100" >
@@ -197,14 +202,12 @@ export const SourceInfo = ({
197
202
</ div >
198
203
) }
199
204
{ /* Last snapshot time */ }
200
- { isAirGappedIsolatedEnv && deploymentStatusDetailsBreakdownData ?. statusLastFetchedAt && (
205
+ { isAirGappedIsolatedEnv && lastSnapshotTime && (
201
206
< Tooltip
202
207
content = {
203
208
< div className = "fw-4 lh-18 flexbox-col dc__ga-2" >
204
209
< h6 className = "fs-12 fw-6 cn-0 m-0" > Last snapshot received</ h6 >
205
- < p className = "m-0 fs-12 cn-50" >
206
- { deploymentStatusDetailsBreakdownData . statusLastFetchedAt }
207
- </ p >
210
+ < p className = "m-0 fs-12 cn-50" > { lastSnapshotTime } </ p >
208
211
</ div >
209
212
}
210
213
alwaysShowTippyOnHover
Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ export interface DeploymentStatusDetailsBreakdownDataType {
112
112
APP_HEALTH ?: DeploymentStatusDetailRow
113
113
HELM_PACKAGE_GENERATED ?: DeploymentStatusDetailRow
114
114
}
115
- statusLastFetchedAt ?: string
116
115
}
117
116
118
117
export interface DeploymentStatusDetailModalType {
You can’t perform that action at this time.
0 commit comments