Skip to content

Commit

Permalink
ENGCOM-4376: Checkout Page Cancel button is not working #21327 #21356
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko authored Mar 4, 2019
2 parents 6ea1eac + 5394674 commit f3b03d5
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 f3b03d5

Please sign in to comment.