fix: Ensure Embark process live updates are being retrieved by Cockpit
This commit is contained in:
parent
efa21a1915
commit
6dccbd8902
|
@ -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});
|
||||||
|
|
Loading…
Reference in New Issue