mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-10-31 10:35:56 +01:00 
			
		
		
		
	- add global rename repositories permission
- add api call on rename action
This commit is contained in:
		| @@ -74,6 +74,13 @@ class RepositoryRoot extends React.Component<Props> { | ||||
|     fetchRepoByName(repoLink, namespace, name); | ||||
|   } | ||||
|  | ||||
|   componentDidUpdate(prevProps: Props) { | ||||
|     const { fetchRepoByName, namespace, name, repoLink } = this.props; | ||||
|     if (namespace !== prevProps.namespace || name !== prevProps.name) { | ||||
|       fetchRepoByName(repoLink, namespace, name); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   stripEndingSlash = (url: string) => { | ||||
|     if (url.endsWith("/")) { | ||||
|       return url.substring(0, url.length - 1); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user