Skip to content

Commit

Permalink
fix: hide cancel button when order state is cancelled (#3720)
Browse files Browse the repository at this point in the history
  • Loading branch information
maze-runnar authored and iamareebjamal committed Dec 27, 2019
1 parent 3478f4b commit 942af59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<i class="check icon"></i>
{{/ui-popup}}
{{/if}}
{{#if (and (not-eq record.status 'cancelled') (not-eq record.status 'expired') (can-modify-order record))}}
{{#if (and (not-eq extraRecords.status 'cancelled') (not-eq extraRecords.status 'expired') (can-modify-order record))}}
{{#ui-popup content=(t 'Cancel order') click=(action (confirm (t 'Are you sure you would like to cancel this Order?') (action props.actions.cancelOrder record))) class="{{if device.isMobile 'medium' 'huge'}} ui icon button" position='top center'}}
<i class="delete icon"></i>
{{/ui-popup}}
Expand Down

0 comments on commit 942af59

Please sign in to comment.