diff --git a/embark-ui/src/components/Console.css b/embark-ui/src/components/Console.css deleted file mode 100644 index c2656b73..00000000 --- a/embark-ui/src/components/Console.css +++ /dev/null @@ -1,6 +0,0 @@ -.console--results { - height: 200px; - overflow-y: scroll; - background-color: #000000; - color: #ffffff; -} diff --git a/embark-ui/src/components/Console.js b/embark-ui/src/components/Console.js index a6667d60..15ed3ed9 100644 --- a/embark-ui/src/components/Console.js +++ b/embark-ui/src/components/Console.js @@ -5,7 +5,6 @@ import Logs from "./Logs"; import Convert from 'ansi-to-html'; const convert = new Convert(); -require('./Console.css'); const CommandResult = ({result}) => (

{result}

diff --git a/embark-ui/src/containers/HomeContainer.js b/embark-ui/src/containers/HomeContainer.js index 7be08163..883cfb72 100644 --- a/embark-ui/src/containers/HomeContainer.js +++ b/embark-ui/src/containers/HomeContainer.js @@ -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); + }); } }