mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-10-31 02:25:53 +01:00 
			
		
		
		
	use i18n for missing extension warning / fix encoding for branches containing slashes
This commit is contained in:
		| @@ -68,6 +68,12 @@ class RepositoryRoot extends React.Component<Props> { | ||||
|     return route.location.pathname.match(regex); | ||||
|   }; | ||||
|  | ||||
|   matchesSources = (route: any) => { | ||||
|     const url = this.matchedUrl(); | ||||
|     const regex = new RegExp(`${url}/(sources|sourceext)/.*`); | ||||
|     return route.location.pathname.match(regex); | ||||
|   }; | ||||
|  | ||||
|   render() { | ||||
|     const { loading, error, indexLinks, repository, t } = this.props; | ||||
|  | ||||
| @@ -196,6 +202,7 @@ class RepositoryRoot extends React.Component<Props> { | ||||
|                   to={`${url}/sources`} | ||||
|                   icon="fas fa-code" | ||||
|                   label={t("repositoryRoot.menu.sourcesNavLink")} | ||||
|                   activeWhenMatch={this.matchesSources} | ||||
|                   activeOnlyWhenExact={false} | ||||
|                 /> | ||||
|                 <ExtensionPoint name="repository.navigation" props={extensionProps} renderAll={true} /> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user