move services state event call to monitor itself
This commit is contained in:
parent
05aadc5c10
commit
b7b5f1b365
|
@ -33,6 +33,7 @@ class Dashboard {
|
|||
|
||||
self.events.on('contractsState', monitor.setContracts);
|
||||
self.events.on('status', monitor.setStatus.bind(monitor));
|
||||
self.events.on('servicesState', monitor.availableServices.bind(monitor));
|
||||
|
||||
self.events.setCommandHandler("console:command", (cmd, cb) => {
|
||||
cb(monitor.executeCmd(cmd));
|
||||
|
|
|
@ -83,9 +83,6 @@ class Embark {
|
|||
});
|
||||
|
||||
engine.logger.info('dashboard start');
|
||||
engine.events.on('servicesState', function (servicesState) {
|
||||
dashboard.monitor.availableServices(servicesState);
|
||||
});
|
||||
|
||||
callback();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue