Skip to content

Commit

Permalink
ENGCOM-4436: [Backport] Checkout Page Cancel button is not working #2…
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko authored Mar 11, 2019
2 parents 1108bde + 91bec29 commit edc400d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,13 @@ function (
}
},

/**
* Manage cancel button visibility
*/
canUseCancelBillingAddress: ko.computed(function () {
return quote.billingAddress() || lastSelectedBillingAddress;
}),

/**
* Restore billing address
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<button class="action action-update" type="button" data-bind="click: updateAddress">
<span data-bind="i18n: 'Update'"></span>
</button>
<button class="action action-cancel" type="button" data-bind="click: cancelAddressEdit">
<button class="action action-cancel" type="button" data-bind="click: cancelAddressEdit, visible: canUseCancelBillingAddress()">
<span data-bind="i18n: 'Cancel'"></span>
</button>
</div>
Expand Down

0 comments on commit edc400d

Please sign in to comment.