Skip to content

Commit

Permalink
Removing rollback button on versions that were never deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
jgruica committed May 18, 2020
1 parent ed5efad commit f086fe7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kotsadm/web/src/components/apps/AppVersionHistory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class AppVersionHistory extends Component {
const needsConfiguration = version.status === "pending_config";
const showActions = !isPastVersion || app.allowRollback;
const isSecondaryBtn = isPastVersion || needsConfiguration;
const isRollback = isPastVersion && version.deployedAt && app.allowRollback;

return (
<div>
Expand All @@ -207,7 +208,7 @@ class AppVersionHistory extends Component {
"Configure" :
downstream.currentVersion?.sequence == undefined ?
"Deploy" :
isPastVersion ?
isRollback ?
"Rollback" :
isCurrentVersion ?
"Deployed" :
Expand Down

0 comments on commit f086fe7

Please sign in to comment.