Skip to content

Commit

Permalink
Show invocation type in breadcrumb (#6798)
Browse files Browse the repository at this point in the history
  • Loading branch information
siggisim authored Jun 12, 2024
1 parent 4318fea commit 7c41661
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/invocation/invocation_overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@ export default class InvocationOverviewComponent extends React.Component<Props>
window.open(this.props.model.getBuildkiteUrl(), "_blank");
}

invocationType() {
if (this.props.model.isWorkflowInvocation()) {
return "Workflow";
}
if (this.props.model.isHostedBazelInvocation()) {
return "Remote Bazel";
}
return "Invocation";
}

render() {
const ownerGroup = this.props.model.findOwnerGroup(this.props.user?.groups);
const isBazelInvocation = this.props.model.isBazelInvocation();
Expand All @@ -103,7 +113,9 @@ export default class InvocationOverviewComponent extends React.Component<Props>
{parentWorkflowId ? "Workflow" : "Bazel invocation"} {parentInvocationId}
</Link>
)}
<span>Invocation {this.props.model.getInvocationId()}</span>
<span>
{this.invocationType()} {this.props.model.getInvocationId()}
</span>
</div>
<InvocationButtons model={this.props.model} user={this.props.user} />
</div>
Expand Down

0 comments on commit 7c41661

Please sign in to comment.