fix return and comment
This commit is contained in:
parent
7254da8ae2
commit
d28b345e65
2 changed files with 5 additions and 2 deletions
|
|
@ -1004,13 +1004,13 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// UX event handlers
|
|
||||||
$rootScope.$on('Local/ClearHistory', function(event) {
|
$rootScope.$on('Local/ClearHistory', function(event) {
|
||||||
$log.debug('The wallet transaction history has been deleted');
|
$log.debug('The wallet transaction history has been deleted');
|
||||||
self.txHistory = [];
|
self.txHistory = [];
|
||||||
self.updateHistory();
|
self.updateHistory();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// UX event handlers
|
||||||
$rootScope.$on('Local/ColorUpdated', function(event) {
|
$rootScope.$on('Local/ColorUpdated', function(event) {
|
||||||
self.updateColor();
|
self.updateColor();
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,10 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
|
||||||
|
|
||||||
this.clearTransactionHistory = function() {
|
this.clearTransactionHistory = function() {
|
||||||
storageService.removeTxHistory(c.walletId, function(err) {
|
storageService.removeTxHistory(c.walletId, function(err) {
|
||||||
if (err) return $log.err(err);
|
if (err) {
|
||||||
|
$log.err(err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$scope.$emit('Local/ClearHistory');
|
$scope.$emit('Local/ClearHistory');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue