Skip to content

Commit f42c8c7

Browse files
committed
MAGETWO-52560: Impossible to use Stored Cards via Braintree on Admin side
1 parent 412c11b commit f42c8c7

File tree

1 file changed

+5
-7
lines changed
  • app/code/Magento/Braintree/view/adminhtml/web/js

1 file changed

+5
-7
lines changed

app/code/Magento/Braintree/view/adminhtml/web/js/vault.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
define([
88
'jquery',
99
'uiComponent',
10-
'Magento_Ui/js/modal/alert',
11-
'Magento_Checkout/js/model/full-screen-loader'
12-
], function ($, Class, alert, fullScreenLoader) {
10+
'Magento_Ui/js/modal/alert'
11+
], function ($, Class, alert) {
1312
'use strict';
1413

1514
return Class.extend({
@@ -84,7 +83,7 @@ define([
8483
submitOrder: function () {
8584
this.$selector.validate().form();
8685
this.$selector.trigger('afterValidate.beforeSubmit');
87-
fullScreenLoader.stopLoader();
86+
$('body').trigger('processStop');
8887

8988
// validate parent form
9089
if (this.$selector.validate().errorList.length) {
@@ -106,7 +105,7 @@ define([
106105
getPaymentMethodNonce: function () {
107106
var self = this;
108107

109-
fullScreenLoader.startLoader();
108+
$('body').trigger('processStart');
110109

111110
$.get(self.nonceUrl, {
112111
'public_hash': self.publicHash
@@ -115,10 +114,9 @@ define([
115114
self.placeOrder();
116115
}).fail(function (response) {
117116
var failed = JSON.parse(response.responseText);
118-
119117
self.error(failed.message);
120118
}).always(function () {
121-
fullScreenLoader.stopLoader();
119+
$('body').trigger('processStop');
122120
});
123121
},
124122

0 commit comments

Comments
 (0)