Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 2058172: Add plan status icon update for succeeded rollback #1447

Merged
merged 2 commits into from
Jun 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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