Skip to content

Commit

Permalink
Merge pull request #177 from cmgustavo/matias/feat/send-all-confirm
Browse files Browse the repository at this point in the history
Fixes confirmation popup for send-all on devices
  • Loading branch information
matiu committed Jun 22, 2015
2 parents 3417d2e + 304e163 commit 89334b0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/js/controllers/walletHome.js
Original file line number Diff line number Diff line change
Expand Up @@ -924,14 +924,19 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
};

this.sendAll = function(amount, feeStr) {
var self = this;
var msg = gettextCatalog.getString("{{fee}} will be discounted for bitcoin networking fees", {
fee: feeStr
});
if (isCordova) {
navigator.notification.confirm(
msg,
this._doSendAll(amount),
'OK', 'Cancel'
function(buttonIndex) {
if (buttonIndex == 1)
$timeout(function() {
self._doSendAll(amount);
}, 1);
}
);
} else {
if (confirm(msg))
Expand Down

0 comments on commit 89334b0

Please sign in to comment.