mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
renaming
This commit is contained in:
@@ -8,23 +8,22 @@ import {
|
|||||||
isFetchPermissionsPending,
|
isFetchPermissionsPending,
|
||||||
getPermissionsOfRepo
|
getPermissionsOfRepo
|
||||||
} from "../modules/permissions";
|
} from "../modules/permissions";
|
||||||
import type { History } from "history";
|
|
||||||
import Loading from "../../components/Loading";
|
import Loading from "../../components/Loading";
|
||||||
import ErrorPage from "../../components/ErrorPage";
|
import ErrorPage from "../../components/ErrorPage";
|
||||||
|
import type {PermissionCollection} from "../types/Permissions";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
namespace: string,
|
namespace: string,
|
||||||
name: string,
|
name: string,
|
||||||
loading: boolean,
|
loading: boolean,
|
||||||
error: Error,
|
error: Error,
|
||||||
permissions: Permissions,
|
permissions: PermissionCollection,
|
||||||
|
|
||||||
//dispatch functions
|
//dispatch functions
|
||||||
fetchPermissions: (namespace: string, name: string) => void,
|
fetchPermissions: (namespace: string, name: string) => void,
|
||||||
|
|
||||||
// context props
|
// context props
|
||||||
t: string => string,
|
t: string => string,
|
||||||
history: History,
|
|
||||||
match: any
|
match: any
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import { apiClient } from "../../apiclient";
|
import { apiClient } from "../../apiclient";
|
||||||
import * as types from "../../modules/types";
|
import * as types from "../../modules/types";
|
||||||
import type { Action } from "../../types/Action";
|
import type { Action } from "../../types/Action";
|
||||||
import type { Permissions } from "../types/Permissions";
|
import type { PermissionCollection } from "../types/Permissions";
|
||||||
import { isPending } from "../../modules/pending";
|
import { isPending } from "../../modules/pending";
|
||||||
import { getFailure } from "../../modules/failure";
|
import { getFailure } from "../../modules/failure";
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ export function fetchPermissionsPending(
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function fetchPermissionsSuccess(
|
export function fetchPermissionsSuccess(
|
||||||
permissions: Permissions,
|
permissions: PermissionCollection,
|
||||||
namespace: string,
|
namespace: string,
|
||||||
name: string
|
name: string
|
||||||
): Action {
|
): Action {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import reducer, {
|
|||||||
FETCH_PERMISSIONS_SUCCESS,
|
FETCH_PERMISSIONS_SUCCESS,
|
||||||
FETCH_PERMISSIONS_FAILURE
|
FETCH_PERMISSIONS_FAILURE
|
||||||
} from "./permissions";
|
} from "./permissions";
|
||||||
import type { Permission, Permissions } from "../types/Permissions";
|
import type { Permission, PermissionCollection } from "../types/Permissions";
|
||||||
|
|
||||||
const hitchhiker_puzzle42Permission_user_eins: Permission = {
|
const hitchhiker_puzzle42Permission_user_eins: Permission = {
|
||||||
name: "user_eins",
|
name: "user_eins",
|
||||||
@@ -55,7 +55,7 @@ const hitchhiker_puzzle42Permission_user_zwei: Permission = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const hitchhiker_puzzle42Permissions: Permissions = [
|
const hitchhiker_puzzle42Permissions: PermissionCollection = [
|
||||||
hitchhiker_puzzle42Permission_user_eins,
|
hitchhiker_puzzle42Permission_user_eins,
|
||||||
hitchhiker_puzzle42Permission_user_zwei
|
hitchhiker_puzzle42Permission_user_zwei
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ export type Permission = {
|
|||||||
_links: Links
|
_links: Links
|
||||||
};
|
};
|
||||||
|
|
||||||
export type Permissions = Permission[];
|
export type PermissionCollection = Permission[];
|
||||||
|
|||||||
Reference in New Issue
Block a user