diff --git a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ConsolidatedProgressionChanges.tsx b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ConsolidatedProgressionChanges.tsx index 9e0a78cbd0..7369459507 100644 --- a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ConsolidatedProgressionChanges.tsx +++ b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ConsolidatedProgressionChanges.tsx @@ -144,13 +144,7 @@ export const ConsolidatedProgressionChanges: FC<{ {readonly ? ( - + ) : ( { const isNotLastMilestone = index < plan.milestones.length - 1; const nextMilestoneId = plan.milestones[index + 1]?.id || ''; - const shouldShowAutomation = - milestonesWithAutomation.has(milestone.id) || - milestonesWithDeletedAutomation.has(milestone.id); + const shouldShowAutomation = readonly + ? milestone.transitionCondition !== undefined + : milestonesWithAutomation.has(milestone.id) || + milestonesWithDeletedAutomation.has(milestone.id); const showAutomation = isNotLastMilestone && shouldShowAutomation; @@ -64,27 +68,39 @@ const MilestoneListRendererCore = ({ const automationSection = showAutomation && milestone.transitionCondition ? ( - { - await onUpdateAutomation( - milestone.id, - payload, - ); - return { shouldReset: true }; - }} - onDelete={() => - onDeleteAutomation(milestone.id) - } - milestoneName={milestone.name} - status={status} - badge={badge} - /> + {readonly ? ( + + ) : ( + { + await onUpdateAutomation( + milestone.id, + payload, + ); + return { shouldReset: true }; + }} + onDelete={() => + onDeleteAutomation(milestone.id) + } + milestoneName={milestone.name} + status={status} + badge={badge} + /> + )} ) : undefined; diff --git a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ProgressionChange.tsx b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ProgressionChange.tsx index 88d5896536..affef372f5 100644 --- a/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ProgressionChange.tsx +++ b/frontend/src/component/changeRequest/ChangeRequest/Changes/Change/ProgressionChange.tsx @@ -87,12 +87,7 @@ export const ProgressionChange: FC = ({ {readonly ? ( - + ) : ( { + const initial = getTimeValueAndUnitFromMinutes(intervalMinutes); + + return ( + + + + + Proceed to the next milestone after + + + {initial.value} {initial.unit} + + + + ); +}; + export const MilestoneTransitionDisplay = ({ intervalMinutes, targetMilestoneId,