enhacements on notifications and balance updates

This commit is contained in:
Matias Alejo Garcia 2014-10-15 12:09:10 -03:00
commit 95e8a22c54
7 changed files with 73 additions and 74 deletions

View file

@ -84,7 +84,8 @@ angular.module('copayApp.controllers').controller('MoreController',
$scope.deleteWallet = function() {
$rootScope.iden.deleteWallet(w.id, function() {
controllerUtils.logout();
notification.info('Wallet deleted', $filter('translate')('wallet deleted'));
$location.path('/manage');
});
};

View file

@ -39,7 +39,7 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
if (w.isReady()) {
w.sendWalletReady();
if ($rootScope.addrInfos.length > 0) {
controllerUtils.updateBalance(function() {
controllerUtils.updateBalance(w, function() {
$rootScope.$digest();
});
}