Show BranchChooser div only when there are branches to choose from

This commit is contained in:
Philipp Czora
2018-10-09 09:22:06 +02:00
parent dbe9ee59a8
commit 1606add59a
3 changed files with 19 additions and 19 deletions

View File

@@ -144,16 +144,12 @@ class Changesets extends React.PureComponent<Props, State> {
return (
<>
<div className={"box"}>
<label className="label">
{t("changesets.branchselector-label")}
</label>
<BranchChooser
repository={repository}
selectedBranchName={branch}
callback={branch => this.branchChanged(branch)}
/>
</div>
<BranchChooser
repository={repository}
selectedBranchName={branch}
label={t("changesets.branchselector-label")}
callback={branch => this.branchChanged(branch)}
/>
<ChangesetList repository={repository} changesets={changesets} />
</>
);