Merge pull request #569 from matiu/bug/safeUnspent

Bug/safe unspent
This commit is contained in:
Manuel Aráoz 2014-06-05 15:27:04 -03:00
commit a3e0711dcd
7 changed files with 21 additions and 13 deletions

View file

@ -35,14 +35,15 @@ angular.module('copayApp.controllers').controller('HeaderController',
// Initialize alert notification (not show when init wallet)
$rootScope.txAlertCount = 0;
$rootScope.insightError = -1;
$rootScope.insightError = 0;
$rootScope.$watch('insightError', function(status) {
if (status === 0) {
if (status === -1) {
$rootScope.$flashMessage = {
type: 'success',
message: 'Networking Restored :)',
};
$rootScope.insightError = 0;
}
});