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
…1327 #21569

 - Merge Pull Request #21569 from mage2pratik/magento2:2.2-develop-PR-port-21356
 - Merged commits:
   1. b169fe3
   2. b2d04ca
   3. b4af131
  • Loading branch information
magento-engcom-team committed Mar 5, 2019
2 parents 0982a53 + b4af131 commit 91bec29
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 91bec29

Please sign in to comment.