fix: Ensure Embark process live updates are being retrieved by Cockpit

This commit is contained in:
Pascal Precht 2018-10-25 12:37:16 +02:00
parent efa21a1915
commit 6dccbd8902
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 3 additions and 11 deletions

View File

@ -39,18 +39,10 @@ class HomeContainer extends Component {
} }
updateTab(processName = EMBARK_PROCESS_NAME) { updateTab(processName = EMBARK_PROCESS_NAME) {
if (!this.isEmbark()){
this.props.stopProcessLogs(this.state.activeProcess) this.props.stopProcessLogs(this.state.activeProcess)
}
if (processName === EMBARK_PROCESS_NAME) {
if (this.props.processLogs.length === 0) {
this.props.fetchProcessLogs(processName, LOG_LIMIT);
}
} else {
this.props.fetchProcessLogs(processName, LOG_LIMIT); this.props.fetchProcessLogs(processName, LOG_LIMIT);
this.props.listenToProcessLogs(processName); this.props.listenToProcessLogs(processName);
}
this.props.fetchContracts(); this.props.fetchContracts();
this.setState({activeProcess: processName}); this.setState({activeProcess: processName});