Skip to content

Commit 4330130

Browse files
authored
Merge pull request #7 from alexmt/306-allow-redeploy-latest
Issue #306 - UI should allow redeploying most recent successful deployment from history
2 parents a30aff9 + ceb838d commit 4330130

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/applications/components/application-deployment-history/application-deployment-history.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ export const ApplicationDeploymentHistory = ({
4242
<div className='columns small-10'>
4343
{info.revision}
4444
<div className='application-deployment-history__item-menu'>
45-
{info.nextDeployedAt && <DropDownMenu anchor={() => <button className='argo-button argo-button--light argo-button--lg argo-button--short'>
45+
<DropDownMenu anchor={() => <button className='argo-button argo-button--light argo-button--lg argo-button--short'>
4646
<i className='fa fa-ellipsis-v'/>
4747
</button>} items={[{
48-
title: 'Rollback',
48+
title: info.nextDeployedAt && 'Rollback' || 'Redeploy',
4949
action: () => rollbackApp(info),
50-
}]}/>}
50+
}]}/>
5151
</div>
5252
</div>
5353
</div>

0 commit comments

Comments
 (0)