don't try to use stats events for adhoc commands

This commit is contained in:
Jake McDermott
2018-04-05 16:41:34 -05:00
parent 8134110e6f
commit 60d311c1a9
2 changed files with 31 additions and 9 deletions

View File

@@ -95,7 +95,7 @@ function init () {
}
});
$scope.$on(resource.ws.events, handleSocketEvent);
$scope.$on(resource.ws.events, handleJobEvent);
$scope.$on(resource.ws.status, handleStatusEvent);
if (!status.isRunning()) {
@@ -107,7 +107,7 @@ function handleStatusEvent (scope, data) {
status.pushStatusEvent(data);
}
function handleSocketEvent (scope, data) {
function handleJobEvent (scope, data) {
engine.pushJobEvent(data);
status.pushJobEvent(data);