mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-01 11:05:56 +01:00
Show BranchChooser div only when there are branches to choose from
This commit is contained in:
@@ -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} />
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user