File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
app/code/Magento/Braintree/view/frontend Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ $config = [
27
27
data-locale="<?php /* @noEscape */ echo $ block ->getLocale (); ?> "
28
28
data-amount="<?php /* @noEscape */ echo $ block ->getAmount (); ?> "
29
29
id="<?php /* @noEscape */ echo $ id ; ?> "
30
- class="action-braintree-paypal-logo">
30
+ class="action-braintree-paypal-logo" disabled >
31
31
<img class="braintree-paypal-button-hidden"
32
32
src="https://checkout.paypal.com/pwpp/2.17.6/images/pay-with-paypal.png"
33
33
alt="Pay with PayPal"/>
Original file line number Diff line number Diff line change 4
4
*/
5
5
define (
6
6
[
7
+ 'rjsResolver' ,
7
8
'uiRegistry' ,
8
9
'uiComponent' ,
9
10
'underscore' ,
@@ -13,6 +14,7 @@ define(
13
14
'domReady!'
14
15
] ,
15
16
function (
17
+ resolver ,
16
18
registry ,
17
19
Component ,
18
20
_ ,
@@ -47,8 +49,10 @@ define(
47
49
* @param {Object } integration
48
50
*/
49
51
onReady : function ( integration ) {
50
- registry . set ( this . integrationName , integration ) ;
51
- $ ( '#' + this . id ) . removeAttr ( 'disabled' ) ;
52
+ resolver ( function ( ) {
53
+ registry . set ( this . integrationName , integration ) ;
54
+ $ ( '#' + this . id ) . removeAttr ( 'disabled' ) ;
55
+ } , this ) ;
52
56
} ,
53
57
54
58
/**
You can’t perform that action at this time.
0 commit comments