diff --git a/embark-ui/src/containers/HomeContainer.js b/embark-ui/src/containers/HomeContainer.js index 082be4db..aed6c83e 100644 --- a/embark-ui/src/containers/HomeContainer.js +++ b/embark-ui/src/containers/HomeContainer.js @@ -3,12 +3,23 @@ import React, {Component} from 'react'; import {connect} from 'react-redux'; import {Page} from "tabler-react"; -import {commands as commandsAction, listenToProcessLogs, processLogs as processLogsAction, stopProcessLogs} from "../actions"; +import { + contracts as contractsAction, + commands as commandsAction, + listenToProcessLogs, + processLogs as processLogsAction, + stopProcessLogs +} from "../actions"; + import DataWrapper from "../components/DataWrapper"; import Processes from '../components/Processes'; import Console from '../components/Console'; import {getProcesses, getProcessLogs} from "../reducers/selectors"; import {EMBARK_PROCESS_NAME} from '../constants'; +import ContractsList from '../components/ContractsList'; +import {getContracts, getProcesses, getCommands, getProcessLogs} from "../reducers/selectors"; + +const EMBARK_PROCESS_NAME = 'Embark'; class HomeContainer extends Component { constructor(props) { @@ -38,6 +49,7 @@ class HomeContainer extends Component { this.props.listenToProcessLogs(processName); } + this.props.fetchContracts(); this.setState({activeProcess: processName}); } @@ -48,6 +60,11 @@ class HomeContainer extends Component { 0 } {...this.props} render={({processes}) => ( )} /> + 0} {...this.props} render={({contracts}) => ( +
+ +
+ )} /> 0 } {...this.props} render={({processes, postCommand, processLogs}) => (