mirror of https://github.com/BTCPrivate/copay.git
Fixes confirmation popup for send-all on devices
This commit is contained in:
parent
3417d2ed1a
commit
304e16337f
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue