fix status sync

This commit is contained in:
Gustavo Cortez 2014-02-13 18:23:47 -03:00
parent e5216a4fe6
commit 76601f8881
2 changed files with 1 additions and 4 deletions

View File

@ -33,6 +33,7 @@ angular.module('insight.connection').controller('ConnectionController',
socket.emit('subscribe', 'sync');
socket.on('status', function(sync) {
$scope.sync = sync;
$scope.apiOnline = (sync.status !== 'aborted' && sync.status !== 'error');
});

View File

@ -41,8 +41,4 @@ angular.module('insight.status').controller('StatusController',
_onSyncUpdate(sync);
});
});
socket.on('status', function(sync) {
_onSyncUpdate(sync);
});
});