File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
app/code/Magento/Checkout/view/frontend/web Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,12 @@ function (
201
201
this . isAddressDetailsVisible ( true ) ;
202
202
}
203
203
} ,
204
+ /**
205
+ * Manage cancel button visibility
206
+ */
207
+ canUseCancelBillingAddress : ko . computed ( function ( ) {
208
+ return quote . billingAddress ( ) || lastSelectedBillingAddress ;
209
+ } ) ,
204
210
205
211
/**
206
212
* Restore billing address
Original file line number Diff line number Diff line change 22
22
< button class ="action action-update " type ="button " data-bind ="click: updateAddress ">
23
23
< span data-bind ="i18n: 'Update' "> </ span >
24
24
</ button >
25
- < button class ="action action-cancel " type ="button " data-bind ="click: cancelAddressEdit ">
25
+ < button class ="action action-cancel " type ="button " data-bind ="click: cancelAddressEdit, visible: canUseCancelBillingAddress() ">
26
26
< span data-bind ="i18n: 'Cancel' "> </ span >
27
27
</ button >
28
28
</ div >
You can’t perform that action at this time.
0 commit comments