fix showconfirm calls
This commit is contained in:
parent
d28c837fcf
commit
8eac86d32a
4 changed files with 7 additions and 5 deletions
|
|
@ -21,7 +21,7 @@ angular.module('copayApp.controllers').controller('copayersController',
|
||||||
$scope.isCordova = platformInfo.isCordova;
|
$scope.isCordova = platformInfo.isCordova;
|
||||||
|
|
||||||
$scope.showDeletePopup = function() {
|
$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();
|
if (res) deleteWallet();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ angular.module('copayApp.controllers').controller('preferencesBitpayCardControll
|
||||||
|
|
||||||
$scope.logout = function() {
|
$scope.logout = function() {
|
||||||
var title = 'Are you sure you would like to log out of your Bitpay Card account?';
|
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();
|
if (res) logout();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ angular.module('copayApp.controllers').controller('preferencesDeleteWalletContro
|
||||||
$scope.showDeletePopup = function() {
|
$scope.showDeletePopup = function() {
|
||||||
var title = gettextCatalog.getString('Warning!');
|
var title = gettextCatalog.getString('Warning!');
|
||||||
var message = gettextCatalog.getString('Are you sure you want to delete this wallet?');
|
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();
|
if (res) deleteWallet();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,9 @@ angular.module('copayApp.controllers').controller('preferencesGlideraController'
|
||||||
}
|
}
|
||||||
$scope.token = glidera.token;
|
$scope.token = glidera.token;
|
||||||
$scope.permissions = glidera.permissions;
|
$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() {
|
$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) {
|
if (res) {
|
||||||
glideraService.removeToken(function() {
|
glideraService.removeToken(function() {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue