Skip to content

Commit a10478e

Browse files
committed
Merge remote-tracking branch 'mpi/MAGETWO-53798' into MPI-PR-3005
2 parents e10c98d + 22dc3d7 commit a10478e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

app/code/Magento/Braintree/view/frontend/templates/paypal/button.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $config = [
2727
data-locale="<?php /* @noEscape */ echo $block->getLocale(); ?>"
2828
data-amount="<?php /* @noEscape */ echo $block->getAmount(); ?>"
2929
id="<?php /* @noEscape */ echo $id; ?>"
30-
class="action-braintree-paypal-logo">
30+
class="action-braintree-paypal-logo" disabled>
3131
<img class="braintree-paypal-button-hidden"
3232
src="https://checkout.paypal.com/pwpp/2.17.6/images/pay-with-paypal.png"
3333
alt="Pay with PayPal"/>

app/code/Magento/Braintree/view/frontend/web/js/paypal/button.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55
define(
66
[
7+
'rjsResolver',
78
'uiRegistry',
89
'uiComponent',
910
'underscore',
@@ -13,6 +14,7 @@ define(
1314
'domReady!'
1415
],
1516
function (
17+
resolver,
1618
registry,
1719
Component,
1820
_,
@@ -47,8 +49,10 @@ define(
4749
* @param {Object} integration
4850
*/
4951
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);
5256
},
5357

5458
/**

0 commit comments

Comments
 (0)