mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-10-30 18:15:52 +01:00 
			
		
		
		
	Merge with 2.0.0-m3
This commit is contained in:
		| @@ -7,9 +7,11 @@ import { | ||||
|   getRepository, | ||||
|   isFetchRepoPending | ||||
| } from "../modules/repos"; | ||||
|  | ||||
| import { connect } from "react-redux"; | ||||
| import { Route, Switch } from "react-router-dom"; | ||||
| import type { Repository } from "@scm-manager/ui-types"; | ||||
|  | ||||
| import { | ||||
|   ErrorPage, | ||||
|   Loading, | ||||
| @@ -26,7 +28,9 @@ import Permissions from "../permissions/containers/Permissions"; | ||||
|  | ||||
| import type { History } from "history"; | ||||
| import EditNavLink from "../components/EditNavLink"; | ||||
|  | ||||
| import BranchRoot from "./BranchRoot"; | ||||
| import ChangesetView from "./ChangesetView"; | ||||
| import PermissionsNavLink from "../components/PermissionsNavLink"; | ||||
| import Sources from "../sources/containers/Sources"; | ||||
| import RepositoryNavLink from "../components/RepositoryNavLink"; | ||||
| @@ -74,6 +78,11 @@ class RepositoryRoot extends React.Component<Props> { | ||||
|     this.props.deleteRepo(repository, this.deleted); | ||||
|   }; | ||||
|  | ||||
|   matchChangeset = (route: any) => { | ||||
|     const url = this.matchedUrl(); | ||||
|     return route.location.pathname.match(`${url}/changeset/`); | ||||
|   }; | ||||
|  | ||||
|   matches = (route: any) => { | ||||
|     const url = this.matchedUrl(); | ||||
|     const regex = new RegExp(`${url}(/branches)?/?[^/]*/changesets?.*`); | ||||
| @@ -121,6 +130,11 @@ class RepositoryRoot extends React.Component<Props> { | ||||
|                   /> | ||||
|                 )} | ||||
|               /> | ||||
|               <Route | ||||
|                 exact | ||||
|                 path={`${url}/changeset/:id`} | ||||
|                 render={() => <ChangesetView repository={repository} />} | ||||
|               /> | ||||
|               <Route | ||||
|                 path={`${url}/sources`} | ||||
|                 exact={true} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user