Merge pull request #3365 from javierbitpay/fix/delete-txs-history

add delete history button in advanced->wallet info
This commit is contained in:
Gustavo Maximiliano Cortez 2015-10-30 15:03:39 -03:00
commit 5e877735c7
3 changed files with 36 additions and 8 deletions

View file

@ -1007,6 +1007,12 @@ angular.module('copayApp.controllers').controller('indexController', function($r
};
$rootScope.$on('Local/ClearHistory', function(event) {
$log.debug('The wallet transaction history has been deleted');
self.txHistory = [];
self.updateHistory();
});
// UX event handlers
$rootScope.$on('Local/ColorUpdated', function(event) {
self.updateColor();
@ -1259,4 +1265,4 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.setFocusedWallet();
});
});
});
});