From dccca5ae2cbcca42744d754801adf5dffa868581 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Wed, 17 Oct 2018 14:18:54 +0200 Subject: [PATCH] do not render branch selector for svn --- scm-ui/src/repos/containers/BranchRoot.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/scm-ui/src/repos/containers/BranchRoot.js b/scm-ui/src/repos/containers/BranchRoot.js index b20edad284..c60dc7281a 100644 --- a/scm-ui/src/repos/containers/BranchRoot.js +++ b/scm-ui/src/repos/containers/BranchRoot.js @@ -85,16 +85,26 @@ class BranchRoot extends React.Component { return ( <> + {this.renderBranchSelector()} + changesets} /> + + ); + } + + renderBranchSelector = () => { + const { repository, branches } = this.props; + if (repository._links.branches) { + return ( { this.branchSelected(b); }} /> - changesets} /> - - ); - } + ); + } + return null; + }; } const mapDispatchToProps = dispatch => {