|
|
@@ -1,5 +1,6 @@ |
|
|
|
import { h, Component } from 'preact';
|
|
|
|
import makeArvadosRequest from 'make-arvados-request';
|
|
|
|
import wbProcessStateName from 'wb-process-state-name';
|
|
|
|
|
|
|
|
class WBProcessState extends Component {
|
|
|
|
componentDidMount() {
|
|
|
@@ -37,14 +38,13 @@ class WBProcessState extends Component { |
|
|
|
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
{ process.state }
|
|
|
|
{ wbProcessStateName(process, container) }
|
|
|
|
{ apiError ? <i>{ [ ' / ', apiError ] }</i> : null }
|
|
|
|
{ container ? [ " / ", container.state ] : null }
|
|
|
|
{ !(error || warning) && container && container.state === 'Complete' ? " / Success" : null }
|
|
|
|
{ error ? [" / ", <a href={ '/container/' + container.uuid }
|
|
|
|
title={ error }>E</a> ] : null }
|
|
|
|
{ warning ? [ " / ", <a href={ '/container/' + container.uuid }
|
|
|
|
title={ warning }>W</a> ] : null } { lazy && !container && !apiError ? (
|
|
|
|
title={ warning }>W</a> ] : null } {}
|
|
|
|
{ lazy && !container && !apiError ? (
|
|
|
|
<a href="#" title="Look up" onclick={ e => { e.preventDefault(); this.fetchData(); } }>
|
|
|
|
<i class="fas fa-search"></i>
|
|
|
|
</a>
|
|
|
|