diff --git a/web/src/screens/repo/screens/build/components/procs.js b/web/src/screens/repo/screens/build/components/procs.js index 8e8e398c1..89eb07404 100644 --- a/web/src/screens/repo/screens/build/components/procs.js +++ b/web/src/screens/repo/screens/build/components/procs.js @@ -18,7 +18,7 @@ const renderEnviron = data => { class ProcListHolder extends Component { constructor(props, context) { super(props, context); - this.state = { open: false }; + this.state = { open: !this.props.renderName }; } toggleOpen = () => { @@ -26,31 +26,26 @@ class ProcListHolder extends Component { }; render() { - const { vars, renderName, children } = this.props; + const { vars, children } = this.props; const groupExpandStatus = this.state.open ? styles.collapsed : styles.expanded; + + let name = ( +
+
{vars.name === "woodpecker" ? "default" : vars.name}
+ {vars.environ ? Object.entries(vars.environ).map(renderEnviron) : ""} +
+ ); + return (
- {renderName && vars.name !== "drone" ? ( -
- -
- ) : null} - {vars.environ ? ( -
- -
- ) : null} +
+ +
{children}
);