add purge to tx prosposals

This commit is contained in:
Matias Alejo Garcia 2014-08-21 13:12:55 -04:00
commit 4931c9d618
6 changed files with 114 additions and 6 deletions

View file

@ -24,6 +24,12 @@ angular.module('copayApp.controllers').controller('MoreController',
});
};
$scope.purge = function(deleteAll) {
var w = $rootScope.wallet;
var removed = w.purgeTxProposals(deleteAll);
notification.info('Tx Proposals Purged', removed + ' transactions proposals were purged');
};
$scope.updateIndexes = function() {
var w = $rootScope.wallet;