added notification for wallet storage error

This commit is contained in:
Ivan Socolsky 2014-12-04 15:55:50 -03:00
commit af721f697e
2 changed files with 10 additions and 0 deletions

View file

@ -307,6 +307,10 @@ angular.module('copayApp.services')
// do nothing. this is handled 'on sync' on controller.
});
iden.on('walletStorageError', function (wid, message) {
notification.error('Error storing wallet', message);
});
iden.on('closed', function() {
delete $rootScope['wallet'];
delete $rootScope['iden'];