From 8eac86d32a7a32849405ab0ebd5733f7e26b787d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Mon, 12 Sep 2016 13:58:36 -0300 Subject: [PATCH] fix showconfirm calls --- src/js/controllers/copayers.js | 2 +- src/js/controllers/preferencesBitpayCard.js | 2 +- src/js/controllers/preferencesDelete.js | 2 +- src/js/controllers/preferencesGlidera.js | 6 ++++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/js/controllers/copayers.js b/src/js/controllers/copayers.js index b95a22121..2743f800f 100644 --- a/src/js/controllers/copayers.js +++ b/src/js/controllers/copayers.js @@ -21,7 +21,7 @@ angular.module('copayApp.controllers').controller('copayersController', $scope.isCordova = platformInfo.isCordova; $scope.showDeletePopup = function() { - popupService.showConfirm(gettextCatalog.getString('Confirm'), gettextCatalog.getString('Are you sure you want to delete this wallet?'), function(res) { + popupService.showConfirm(gettextCatalog.getString('Confirm'), gettextCatalog.getString('Are you sure you want to delete this wallet?'), null, null, function(res) { if (res) deleteWallet(); }); }; diff --git a/src/js/controllers/preferencesBitpayCard.js b/src/js/controllers/preferencesBitpayCard.js index 8a297c8aa..9e4c9da8a 100644 --- a/src/js/controllers/preferencesBitpayCard.js +++ b/src/js/controllers/preferencesBitpayCard.js @@ -5,7 +5,7 @@ angular.module('copayApp.controllers').controller('preferencesBitpayCardControll $scope.logout = function() { var title = 'Are you sure you would like to log out of your Bitpay Card account?'; - popupService.showConfirm(title, null, function(res) { + popupService.showConfirm(title, null, null, null, function(res) { if (res) logout(); }); }; diff --git a/src/js/controllers/preferencesDelete.js b/src/js/controllers/preferencesDelete.js index 8e95a31c1..1ec93fd4b 100644 --- a/src/js/controllers/preferencesDelete.js +++ b/src/js/controllers/preferencesDelete.js @@ -10,7 +10,7 @@ angular.module('copayApp.controllers').controller('preferencesDeleteWalletContro $scope.showDeletePopup = function() { var title = gettextCatalog.getString('Warning!'); var message = gettextCatalog.getString('Are you sure you want to delete this wallet?'); - popupService.showConfirm(title, message, function(res) { + popupService.showConfirm(title, message, null, null, function(res) { if (res) deleteWallet(); }); }; diff --git a/src/js/controllers/preferencesGlidera.js b/src/js/controllers/preferencesGlidera.js index 86c3516af..16749e66e 100644 --- a/src/js/controllers/preferencesGlidera.js +++ b/src/js/controllers/preferencesGlidera.js @@ -23,7 +23,9 @@ angular.module('copayApp.controllers').controller('preferencesGlideraController' } $scope.token = glidera.token; $scope.permissions = glidera.permissions; - $scope.update({fullUpdate: true}); + $scope.update({ + fullUpdate: true + }); }); }; @@ -62,7 +64,7 @@ angular.module('copayApp.controllers').controller('preferencesGlideraController' }; $scope.revokeToken = function() { - popupService.showConfirm('Glidera', 'Are you sure you would like to log out of your Glidera account?', function(res) { + popupService.showConfirm('Glidera', 'Are you sure you would like to log out of your Glidera account?', null, null, function(res) { if (res) { glideraService.removeToken(function() { $timeout(function() {