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 (
201201 this . isAddressDetailsVisible ( true ) ;
202202 }
203203 } ,
204+ /**
205+ * Manage cancel button visibility
206+ */
207+ canUseCancelBillingAddress : ko . computed ( function ( ) {
208+ return quote . billingAddress ( ) || lastSelectedBillingAddress ;
209+ } ) ,
204210
205211 /**
206212 * Restore billing address
Original file line number Diff line number Diff line change 2222 < button class ="action action-update " type ="button " data-bind ="click: updateAddress ">
2323 < span data-bind ="i18n: 'Update' "> </ span >
2424 </ 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() ">
2626 < span data-bind ="i18n: 'Cancel' "> </ span >
2727 </ button >
2828 </ div >
You can’t perform that action at this time.
0 commit comments