mirror of https://github.com/embarklabs/embark.git
fix errors and add swarm
This commit is contained in:
parent
1ec5ee533c
commit
0b6cb01a80
|
@ -20,24 +20,21 @@ class ProcessesContainer extends Component {
|
||||||
return <Loading />;
|
return <Loading />;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (processes.error) {
|
|
||||||
return (
|
|
||||||
<h1>
|
|
||||||
<i>Error loading processes: {processes.error.message || processes.error}</i>
|
|
||||||
</h1>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
const processNames = Object.keys(processes.data);
|
const processNames = Object.keys(processes.data);
|
||||||
return (
|
return (
|
||||||
<div className="processes-container">
|
<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 => {
|
{processNames.map(processName => {
|
||||||
return (<Tab key={processName} title={processName}>
|
return (<Tab key={processName} title={processName}>
|
||||||
<Process processName={processName} state={processes.data[processName].state}/>
|
<Process processName={processName} state={processes.data[processName].state}/>
|
||||||
</Tab>);
|
</Tab>);
|
||||||
})}
|
})}
|
||||||
</Tabs>
|
</Tabs>}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,8 +97,8 @@ class Swarm {
|
||||||
events: self.events,
|
events: self.events,
|
||||||
storageConfig: self.storageConfig,
|
storageConfig: self.storageConfig,
|
||||||
webServerConfig: self.webServerConfig,
|
webServerConfig: self.webServerConfig,
|
||||||
blockchainConfig: self.blockchainConfig,
|
|
||||||
corsParts: self.embark.config.corsParts
|
corsParts: self.embark.config.corsParts
|
||||||
|
embark: self.embark
|
||||||
});
|
});
|
||||||
self.logger.trace(`Storage module: Launching swarm process...`);
|
self.logger.trace(`Storage module: Launching swarm process...`);
|
||||||
return storageProcessesLauncher.launchProcess('swarm', callback);
|
return storageProcessesLauncher.launchProcess('swarm', callback);
|
||||||
|
|
Loading…
Reference in New Issue