[JENKINS-39979] Check for multibranch capabilities sooner (#623)
This commit is contained in:
parent
8600c1b91d
commit
7be34f65cf
|
@ -55,10 +55,12 @@ export class MultiBranch extends Component {
|
|||
|
||||
render() {
|
||||
const { t, locale, pipeline } = this.props;
|
||||
const branches = this.pager.data;
|
||||
|
||||
if (!capable(pipeline, MULTIBRANCH_PIPELINE)) {
|
||||
return (<NotSupported />);
|
||||
return (<NotSupported t={t} />);
|
||||
}
|
||||
|
||||
const branches = this.pager.data;
|
||||
|
||||
if (!this.pager.pending && !branches.length) {
|
||||
return (<EmptyState repoName={this.context.params.pipeline} />);
|
||||
|
|
Loading…
Reference in New Issue