Skip to content

Commit

Permalink
Allow 'syncApplication' action to reference target revision rather th…
Browse files Browse the repository at this point in the history
…en hard-coding to 'HEAD' (#69)
  • Loading branch information
chrisgarland authored and alexmt committed Nov 1, 2018
1 parent 7298289 commit 09e4c32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class ApplicationsList extends React.Component<Props, State> {
<DropDownMenu anchor={() =>
<button className='argo-button argo-button--base-o'>Actions <i className='fa fa-caret-down'/></button>
} items={[
{ title: 'Sync', action: () => this.syncApplication(app.metadata.name, 'HEAD') },
{ title: 'Sync', action: () => this.syncApplication(app.metadata.name, app.spec.source.targetRevision || 'HEAD') },
{ title: 'Delete', action: () => this.deleteApplication(app.metadata.name) },
]} />
</div>
Expand Down

0 comments on commit 09e4c32

Please sign in to comment.