[JENKINS-39979] Check for multibranch capabilities sooner (#623)

This commit is contained in:
Ivan Meredith 2016-11-24 20:29:56 +13:00 committed by GitHub
parent 8600c1b91d
commit 7be34f65cf
1 changed files with 4 additions and 2 deletions

View File

@ -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} />);