mirror of https://github.com/BTCPrivate/copay.git
fix emit call
This commit is contained in:
parent
ae132bd91d
commit
f65e971cf4
|
@ -1006,13 +1006,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
|
|
||||||
// UX event handlers
|
// UX event handlers
|
||||||
$rootScope.$on('Local/ClearHistory', function(event, walletId) {
|
$rootScope.$on('Local/ClearHistory', function(event, walletId) {
|
||||||
storageService.removeTxHistory(walletId, function(err) {
|
$log.debug('The wallet transaction history has been deleted');
|
||||||
if (err) root.showErrorPopup(err);
|
self.txHistory = [];
|
||||||
|
self.updateHistory();
|
||||||
$log.debug('The wallet transaction history has been deleted');
|
|
||||||
self.txHistory = [];
|
|
||||||
self.updateHistory();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$rootScope.$on('Local/ColorUpdated', function(event) {
|
$rootScope.$on('Local/ColorUpdated', function(event) {
|
||||||
|
|
|
@ -98,8 +98,9 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
|
||||||
storageService.removeTxHistory(c.walletId, function(err) {
|
storageService.removeTxHistory(c.walletId, function(err) {
|
||||||
if (err) return $log.err(err);
|
if (err) return $log.err(err);
|
||||||
|
|
||||||
|
$scope.$emit('Local/ClearHistory');
|
||||||
|
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.$emit('Local/ClearHistory');
|
|
||||||
go.walletHome();
|
go.walletHome();
|
||||||
}, 100);
|
}, 100);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue