mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 17:00:30 +00:00
Not rendering multipipeline controls for non multipipeline jobs
This commit is contained in:
parent
4e94ded326
commit
34c170500a
2 changed files with 3934 additions and 3866 deletions
7766
web/dist/dist_gen.go
vendored
7766
web/dist/dist_gen.go
vendored
File diff suppressed because one or more lines are too long
|
@ -26,26 +26,32 @@ class ProcListHolder extends Component {
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { vars, children } = this.props;
|
const { vars, renderName, children } = this.props;
|
||||||
const groupExpandStatus = this.state.open
|
const groupExpandStatus = this.state.open
|
||||||
? styles.collapsed
|
? styles.collapsed
|
||||||
: styles.expanded;
|
: styles.expanded;
|
||||||
|
|
||||||
let name = (
|
|
||||||
<div>
|
|
||||||
<div>{vars.name === "woodpecker" ? "default" : vars.name}</div>
|
|
||||||
{vars.environ ? Object.entries(vars.environ).map(renderEnviron) : ""}
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.list}>
|
<div className={styles.list}>
|
||||||
<div
|
{renderName && vars.name !== "drone" ? (
|
||||||
onClick={this.toggleOpen}
|
<div
|
||||||
className={`${styles.group} ${groupExpandStatus}`}
|
onClick={this.toggleOpen}
|
||||||
>
|
className={`${styles.group} ${groupExpandStatus}`}
|
||||||
<StatusText status={vars.state} text={name} />
|
>
|
||||||
</div>
|
<StatusText status={vars.state} text={vars.name} />
|
||||||
|
</div>
|
||||||
|
) : null}
|
||||||
|
{vars.environ ? (
|
||||||
|
<div
|
||||||
|
onClick={this.toggleOpen}
|
||||||
|
className={`${styles.group} ${groupExpandStatus}`}
|
||||||
|
>
|
||||||
|
<StatusText
|
||||||
|
status={vars.state}
|
||||||
|
text={Object.entries(vars.environ).map(renderEnviron)}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
) : null}
|
||||||
<div className={!this.state.open ? styles.hide : ""}>{children}</div>
|
<div className={!this.state.open ? styles.hide : ""}>{children}</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue