fetch all processes

This commit is contained in:
Jonathan Rainville 2018-09-05 17:39:37 -04:00 committed by Pascal Precht
parent 39a0fae69a
commit b34a9e5e63
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
3 changed files with 6 additions and 13 deletions

View File

@ -1,6 +0,0 @@
.console--results {
height: 200px;
overflow-y: scroll;
background-color: #000000;
color: #ffffff;
}

View File

@ -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>

View File

@ -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'); });
} }
} }