add store / refrest
This commit is contained in:
parent
c616f02169
commit
dd724a6135
2 changed files with 5 additions and 2 deletions
|
|
@ -27,12 +27,14 @@ angular.module('copayApp.controllers').controller('MoreController',
|
||||||
$scope.purge = function(deleteAll) {
|
$scope.purge = function(deleteAll) {
|
||||||
var w = $rootScope.wallet;
|
var w = $rootScope.wallet;
|
||||||
var removed = w.purgeTxProposals(deleteAll);
|
var removed = w.purgeTxProposals(deleteAll);
|
||||||
notification.info('Tx Proposals Purged', removed + ' transactions proposals were purged');
|
if (removed){
|
||||||
|
controllerUtils.updateBalance();
|
||||||
|
}
|
||||||
|
notification.info('Tx Proposals Purged', removed + ' transaction proposal purged');
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.updateIndexes = function() {
|
$scope.updateIndexes = function() {
|
||||||
var w = $rootScope.wallet;
|
var w = $rootScope.wallet;
|
||||||
|
|
||||||
notification.info('Scaning for transactions','Using derived addresses from your wallet');
|
notification.info('Scaning for transactions','Using derived addresses from your wallet');
|
||||||
w.updateIndexes(function(err) {
|
w.updateIndexes(function(err) {
|
||||||
notification.info('Scan Ended', 'Updating balance');
|
notification.info('Scan Ended', 'Updating balance');
|
||||||
|
|
|
||||||
|
|
@ -714,6 +714,7 @@ Wallet.prototype.purgeTxProposals = function(deleteAll) {
|
||||||
} else {
|
} else {
|
||||||
this.txProposals.deletePending(this.maxRejectCount());
|
this.txProposals.deletePending(this.maxRejectCount());
|
||||||
}
|
}
|
||||||
|
this.store();
|
||||||
|
|
||||||
var n = this.txProposals.length();
|
var n = this.txProposals.length();
|
||||||
return m-n;
|
return m-n;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue