remove duplicated indexResource

This commit is contained in:
Florian Scholdei
2019-05-17 16:16:37 +02:00
parent 0b76247345
commit 7631d623be
2 changed files with 2 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ import {
getFetchRolesFailure
} from "../modules/roles";
import PermissionRoleTable from "../components/PermissionRoleTable";
import { getRolesLink } from "../../../modules/indexResource";
import { getRepositoryRolesLink } from "../../../modules/indexResource";
type Props = {
baseUrl: string,
@@ -104,7 +104,7 @@ const mapStateToProps = (state, ownProps) => {
const page = urls.getPageFromMatch(match);
const canAddRoles = isPermittedToCreateRoles(state);
const list = selectListAsCollection(state);
const rolesLink = getRolesLink(state);
const rolesLink = getRepositoryRolesLink(state);
return {
roles,

View File

@@ -159,10 +159,6 @@ export function getSvnConfigLink(state: Object) {
return getLink(state, "svnConfig");
}
export function getRolesLink(state: Object) {
return getLink(state, "repositoryRoles");
}
export function getUserAutoCompleteLink(state: Object): string {
const link = getLinkCollection(state, "autocomplete").find(
i => i.name === "users"