Fix: allow multi pipeline file to be named .drone.yml (#250)

This commit is contained in:
Anbraten 2021-07-22 12:53:56 +02:00 committed by GitHub
parent 41f2bc026d
commit 830b03619e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -33,7 +33,7 @@ class ProcListHolder extends Component {
return ( return (
<div className={styles.list}> <div className={styles.list}>
{renderName && vars.name !== "drone" ? ( {renderName ? (
<div <div
onClick={this.toggleOpen} onClick={this.toggleOpen}
className={`${styles.group} ${groupExpandStatus}`} className={`${styles.group} ${groupExpandStatus}`}
@ -60,9 +60,9 @@ class ProcListHolder extends Component {
export class ProcList extends Component { export class ProcList extends Component {
render() { render() {
const { repo, build, rootProc, selectedProc, renderName } = this.props; const { repo, build, rootProc, selectedProc } = this.props;
return ( return (
<ProcListHolder vars={rootProc} renderName={renderName}> <ProcListHolder vars={rootProc} renderName={build.procs.length > 1}>
{this.props.rootProc.children.map(function(child) { {this.props.rootProc.children.map(function(child) {
return ( return (
<Link <Link

View file

@ -207,7 +207,6 @@ export default class BuildLogs extends Component {
build={build} build={build}
rootProc={rootProc} rootProc={rootProc}
selectedProc={selectedProc} selectedProc={selectedProc}
renderName={build.procs.length > 1}
/> />
</div> </div>
); );