mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 22:15:45 +01:00
Feature/branch details (#1876)
Enrich branch overview with more details like last committer and ahead/behind commits. Since calculating this information is pretty intense, we request it in chunks to prevent very long loading times. Also we cache the results in frontend and backend. Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
This commit is contained in:
@@ -61,8 +61,8 @@ const BranchSelector: FC<Props> = ({ branches, onSelectBranch, selectedBranch, l
|
||||
<MinWidthControl className="control">
|
||||
<Select
|
||||
className="is-fullwidth"
|
||||
options={branches.map((b) => ({ label: b.name, value: b.name }))}
|
||||
onChange={(branch) => onSelectBranch(branches.filter((b) => b.name === branch)[0])}
|
||||
options={branches.map(b => ({ label: b.name, value: b.name }))}
|
||||
onChange={branch => onSelectBranch(branches.filter(b => b.name === branch)[0])}
|
||||
disabled={!!disabled}
|
||||
value={selectedBranch}
|
||||
addValueToOptions={true}
|
||||
|
||||
Reference in New Issue
Block a user