mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-01 19:15:52 +01:00
Add functionality to modify repository storage locations
The repository location resolver gets a new function that allows to change the location of a repository. Pushed-by: Rene Pfeuffer<rene.pfeuffer@cloudogu.com> Co-authored-by: René Pfeuffer<rene.pfeuffer@cloudogu.com> Committed-by: René Pfeuffer<rene.pfeuffer@cloudogu.com>
This commit is contained in:
@@ -57,6 +57,14 @@ const RepositoryDangerZone: FC<Props> = ({ repository }) => {
|
||||
if (repository?._links?.unarchive) {
|
||||
dangerZone.push(<UnarchiveRepo repository={repository} />);
|
||||
}
|
||||
dangerZone.push(
|
||||
<ExtensionPoint<extensionPoints.RepositoryDangerZone>
|
||||
name="repository.dangerZone"
|
||||
props={{ repository }}
|
||||
renderAll={true}
|
||||
/>
|
||||
);
|
||||
|
||||
if (dangerZone.length === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user