Merge pull request #177 from cmgustavo/matias/feat/send-all-confirm
Fixes confirmation popup for send-all on devices
This commit is contained in:
commit
89334b0452
1 changed files with 7 additions and 2 deletions
|
|
@ -924,14 +924,19 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
};
|
};
|
||||||
|
|
||||||
this.sendAll = function(amount, feeStr) {
|
this.sendAll = function(amount, feeStr) {
|
||||||
|
var self = this;
|
||||||
var msg = gettextCatalog.getString("{{fee}} will be discounted for bitcoin networking fees", {
|
var msg = gettextCatalog.getString("{{fee}} will be discounted for bitcoin networking fees", {
|
||||||
fee: feeStr
|
fee: feeStr
|
||||||
});
|
});
|
||||||
if (isCordova) {
|
if (isCordova) {
|
||||||
navigator.notification.confirm(
|
navigator.notification.confirm(
|
||||||
msg,
|
msg,
|
||||||
this._doSendAll(amount),
|
function(buttonIndex) {
|
||||||
'OK', 'Cancel'
|
if (buttonIndex == 1)
|
||||||
|
$timeout(function() {
|
||||||
|
self._doSendAll(amount);
|
||||||
|
}, 1);
|
||||||
|
}
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
if (confirm(msg))
|
if (confirm(msg))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue