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

View file

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