mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-23 05:38:52 +00:00
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…
x
Reference in New Issue
Block a user