diff --git a/ui/src/app/applications/components/application-hydrate-operation-state/application-hydrate-operation-state.tsx b/ui/src/app/applications/components/application-hydrate-operation-state/application-hydrate-operation-state.tsx index 4c9171ad17dac..91978830b724f 100644 --- a/ui/src/app/applications/components/application-hydrate-operation-state/application-hydrate-operation-state.tsx +++ b/ui/src/app/applications/components/application-hydrate-operation-state/application-hydrate-operation-state.tsx @@ -37,15 +37,17 @@ export const ApplicationHydrateOperationState: React.FunctionComponent = if (hydrateOperationState.finishedAt && hydrateOperationState.phase !== 'Hydrating') { operationAttributes.push({title: 'FINISHED AT', value: }); } - operationAttributes.push({ - title: 'DRY REVISION', - value: ( -
- -
- ) - }); - if (hydrateOperationState.finishedAt) { + if (hydrateOperationState.drySHA) { + operationAttributes.push({ + title: 'DRY REVISION', + value: ( +
+ +
+ ) + }); + } + if (hydrateOperationState.finishedAt && hydrateOperationState.hydratedSHA) { operationAttributes.push({ title: 'HYDRATED REVISION', value: ( diff --git a/ui/src/app/shared/models.ts b/ui/src/app/shared/models.ts index b0e5532935b80..71070095c8f78 100644 --- a/ui/src/app/shared/models.ts +++ b/ui/src/app/shared/models.ts @@ -481,7 +481,9 @@ export interface HydrateOperation { finishedAt?: models.Time; phase: HydrateOperationPhase; message: string; + // drySHA is the sha of the DRY commit being hydrated. This will be empty if the operation is not successful. drySHA: string; + // hydratedSHA is the sha of the hydrated commit. This will be empty if the operation is not successful. hydratedSHA: string; sourceHydrator: SourceHydrator; }