move services state event call to monitor itself

This commit is contained in:
Iuri Matias 2018-03-10 12:46:02 -05:00
parent 05aadc5c10
commit b7b5f1b365
2 changed files with 1 additions and 3 deletions

View File

@ -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));

View File

@ -83,9 +83,6 @@ class Embark {
});
engine.logger.info('dashboard start');
engine.events.on('servicesState', function (servicesState) {
dashboard.monitor.availableServices(servicesState);
});
callback();
});