Disable button while sending funds
This commit is contained in:
parent
50a0c8ffd4
commit
10ae7b61d7
2 changed files with 15 additions and 4 deletions
|
|
@ -81,12 +81,21 @@ angular.module('copayApp.controllers').controller('paperWalletController',
|
|||
};
|
||||
|
||||
self.transaction = function() {
|
||||
self.doTransaction(rawTx).then(function(err, response) {
|
||||
self.error = null;
|
||||
self.sending = true;
|
||||
$timeout(function() {
|
||||
self.doTransaction(rawTx).then(function(err, response) {
|
||||
self.sending = false;
|
||||
self.goHome();
|
||||
},
|
||||
function(err) {
|
||||
self.sending = false;
|
||||
self.error = err.toString();
|
||||
$timeout(function() {
|
||||
$scope.$apply();
|
||||
}, 1);
|
||||
});
|
||||
}, 100);
|
||||
};
|
||||
|
||||
self.goHome = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue