Merge pull request #307 from cmgustavo/bug/02sync-info-box
fix status sync
This commit is contained in:
commit
c612857295
@ -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');
|
||||
});
|
||||
|
||||
|
||||
@ -41,8 +41,4 @@ angular.module('insight.status').controller('StatusController',
|
||||
_onSyncUpdate(sync);
|
||||
});
|
||||
});
|
||||
|
||||
socket.on('status', function(sync) {
|
||||
_onSyncUpdate(sync);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user