Skip to content

Commit

Permalink
Add plan status icon update for succeeded rollback (#1447)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 committed Jun 15, 2022
1 parent 90ba47f commit 4c98f07
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/home/pages/PlansPage/components/PlanStatusIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const PlanStatusIcon: React.FunctionComponent<IProps> = ({ plan }) => {
hasNotReadyCondition = null,
hasSucceededStage = null,
hasSucceededCutover = null,
hasSucceededRollback = null,
hasSucceededWithWarningsCondition = null,
isPlanLocked = null,
hasConflictCondition = null,
Expand Down Expand Up @@ -82,6 +83,12 @@ const PlanStatusIcon: React.FunctionComponent<IProps> = ({ plan }) => {
<ResourcesAlmostEmptyIcon />
</span>
);
} else if (hasSucceededRollback) {
return (
<span className={`${styles.planStatusIcon} pf-c-icon pf-m-success`}>
<ResourcesFullIcon />
</span>
);
} else {
return (
<span className={`${styles.planStatusIcon} pf-c-icon pf-m-info`}>
Expand Down

0 comments on commit 4c98f07

Please sign in to comment.