add refresh on tx delete
This commit is contained in:
parent
8981bcc251
commit
6caaaa3565
1 changed files with 7 additions and 3 deletions
|
|
@ -91,10 +91,10 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
|
|
||||||
var parseError = function(err) {
|
var parseError = function(err) {
|
||||||
if (err.message) {
|
if (err.message) {
|
||||||
if (err.message.indexOf('CORS')) {
|
if (err.message.indexOf('CORS')>=0) {
|
||||||
err.message = gettext('Could not connect wallet service. Check your Internet connexion and your wallet service configuration.');
|
err.message = gettext('Could not connect wallet service. Check your Internet connexion and your wallet service configuration.');
|
||||||
}
|
}
|
||||||
if (err.message.indexOf('TIMEDOUT')) {
|
if (err.message.indexOf('TIMEDOUT')>=0) {
|
||||||
err.message = gettext('Wallet service timed out. Check your Internet connexion and your wallet service configuration.');
|
err.message = gettext('Wallet service timed out. Check your Internet connexion and your wallet service configuration.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -309,11 +309,15 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
});
|
});
|
||||||
|
|
||||||
modalInstance.result.then(function(txp) {
|
modalInstance.result.then(function(txp) {
|
||||||
|
self.setOngoingProcess();
|
||||||
if (txp) {
|
if (txp) {
|
||||||
self.setOngoingProcess();
|
|
||||||
txStatus.notify(txp, function() {
|
txStatus.notify(txp, function() {
|
||||||
$scope.$emit('Local/TxProposalAction');
|
$scope.$emit('Local/TxProposalAction');
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$emit('Local/TxProposalAction');
|
||||||
|
}, 100);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue