mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-21 12:49:11 +00:00
fix errors and add swarm
This commit is contained in:
parent
f64cf08410
commit
2a14feab75
@ -20,24 +20,21 @@ class ProcessesContainer extends Component {
|
||||
return <Loading />;
|
||||
}
|
||||
|
||||
if (processes.error) {
|
||||
return (
|
||||
<h1>
|
||||
<i>Error loading processes: {processes.error.message || processes.error}</i>
|
||||
</h1>
|
||||
);
|
||||
}
|
||||
|
||||
const processNames = Object.keys(processes.data);
|
||||
return (
|
||||
<div className="processes-container">
|
||||
<Tabs initialTab={processNames[0]}>
|
||||
{processes.error && <h1>
|
||||
<i>Error: {processes.error.message || processes.error}</i>
|
||||
</h1>}
|
||||
|
||||
{processNames && processNames.length && <Tabs initialTab={processNames[0]}>
|
||||
{processNames.map(processName => {
|
||||
return (<Tab key={processName} title={processName}>
|
||||
<Process processName={processName} state={processes.data[processName].state}/>
|
||||
</Tab>);
|
||||
})}
|
||||
</Tabs>
|
||||
</Tabs>}
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -27,6 +27,10 @@ class Swarm {
|
||||
return;
|
||||
}
|
||||
|
||||
this.events.request('processes:register', 'swarm', (cb) => {
|
||||
self.startProcess(cb);
|
||||
});
|
||||
|
||||
this.bzz = new Web3Bzz(this.providerUrl);
|
||||
|
||||
this.setServiceCheck();
|
||||
@ -89,7 +93,8 @@ class Swarm {
|
||||
events: self.events,
|
||||
storageConfig: self.storageConfig,
|
||||
webServerConfig: self.webServerConfig,
|
||||
blockchainConfig: self.blockchainConfig
|
||||
blockchainConfig: self.blockchainConfig,
|
||||
embark: self.embark
|
||||
});
|
||||
self.logger.trace(`Storage module: Launching swarm process...`);
|
||||
return storageProcessesLauncher.launchProcess('swarm', callback);
|
||||
|
Loading…
x
Reference in New Issue
Block a user