File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
app/code/Magento/Checkout/view/frontend/web Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,13 @@ function (
202
202
}
203
203
} ,
204
204
205
+ /**
206
+ * Manage cancel button visibility
207
+ */
208
+ canUseCancelBillingAddress : ko . computed ( function ( ) {
209
+ return quote . billingAddress ( ) || lastSelectedBillingAddress ;
210
+ } ) ,
211
+
205
212
/**
206
213
* Restore billing address
207
214
*/
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