fix status sync
This commit is contained in:
parent
e5216a4fe6
commit
76601f8881
|
@ -33,6 +33,7 @@ angular.module('insight.connection').controller('ConnectionController',
|
||||||
|
|
||||||
socket.emit('subscribe', 'sync');
|
socket.emit('subscribe', 'sync');
|
||||||
socket.on('status', function(sync) {
|
socket.on('status', function(sync) {
|
||||||
|
$scope.sync = sync;
|
||||||
$scope.apiOnline = (sync.status !== 'aborted' && sync.status !== 'error');
|
$scope.apiOnline = (sync.status !== 'aborted' && sync.status !== 'error');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -41,8 +41,4 @@ angular.module('insight.status').controller('StatusController',
|
||||||
_onSyncUpdate(sync);
|
_onSyncUpdate(sync);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on('status', function(sync) {
|
|
||||||
_onSyncUpdate(sync);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue