fetch all processes
This commit is contained in:
parent
39a0fae69a
commit
b34a9e5e63
|
@ -1,6 +0,0 @@
|
|||
.console--results {
|
||||
height: 200px;
|
||||
overflow-y: scroll;
|
||||
background-color: #000000;
|
||||
color: #ffffff;
|
||||
}
|
|
@ -5,7 +5,6 @@ import Logs from "./Logs";
|
|||
import Convert from 'ansi-to-html';
|
||||
|
||||
const convert = new Convert();
|
||||
require('./Console.css');
|
||||
|
||||
const CommandResult = ({result}) => (
|
||||
<p className="text__new-line">{result}</p>
|
||||
|
|
|
@ -11,12 +11,12 @@ import Console from '../components/Console';
|
|||
import {getProcesses, getCommands, getVersions, getProcessLogs} from "../reducers/selectors";
|
||||
|
||||
class HomeContainer extends Component {
|
||||
componentDidMount() {
|
||||
if (this.props.processLogs.length === 0) {
|
||||
// TODO get all
|
||||
this.props.fetchProcessLogs('blockchain');
|
||||
this.props.fetchProcessLogs('ipfs');
|
||||
this.props.listenToProcessLogs('blockchain');
|
||||
componentDidUpdate(prevProps) {
|
||||
if (!prevProps.processes.length) {
|
||||
this.props.processes.forEach(process => {
|
||||
this.props.fetchProcessLogs(process.name);
|
||||
this.props.listenToProcessLogs(process.name);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue