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';
|
import Convert from 'ansi-to-html';
|
||||||
|
|
||||||
const convert = new Convert();
|
const convert = new Convert();
|
||||||
require('./Console.css');
|
|
||||||
|
|
||||||
const CommandResult = ({result}) => (
|
const CommandResult = ({result}) => (
|
||||||
<p className="text__new-line">{result}</p>
|
<p className="text__new-line">{result}</p>
|
||||||
|
|
|
@ -11,12 +11,12 @@ import Console from '../components/Console';
|
||||||
import {getProcesses, getCommands, getVersions, getProcessLogs} from "../reducers/selectors";
|
import {getProcesses, getCommands, getVersions, getProcessLogs} from "../reducers/selectors";
|
||||||
|
|
||||||
class HomeContainer extends Component {
|
class HomeContainer extends Component {
|
||||||
componentDidMount() {
|
componentDidUpdate(prevProps) {
|
||||||
if (this.props.processLogs.length === 0) {
|
if (!prevProps.processes.length) {
|
||||||
// TODO get all
|
this.props.processes.forEach(process => {
|
||||||
this.props.fetchProcessLogs('blockchain');
|
this.props.fetchProcessLogs(process.name);
|
||||||
this.props.fetchProcessLogs('ipfs');
|
this.props.listenToProcessLogs(process.name);
|
||||||
this.props.listenToProcessLogs('blockchain');
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue