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,
|
||||
getPermissionsOfRepo
|
||||
} from "../modules/permissions";
|
||||
import type { History } from "history";
|
||||
import Loading from "../../components/Loading";
|
||||
import ErrorPage from "../../components/ErrorPage";
|
||||
import type {PermissionCollection} from "../types/Permissions";
|
||||
|
||||
type Props = {
|
||||
namespace: string,
|
||||
name: string,
|
||||
loading: boolean,
|
||||
error: Error,
|
||||
permissions: Permissions,
|
||||
permissions: PermissionCollection,
|
||||
|
||||
//dispatch functions
|
||||
fetchPermissions: (namespace: string, name: string) => void,
|
||||
|
||||
// context props
|
||||
t: string => string,
|
||||
history: History,
|
||||
match: any
|
||||
};
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { apiClient } from "../../apiclient";
|
||||
import * as types from "../../modules/types";
|
||||
import type { Action } from "../../types/Action";
|
||||
import type { Permissions } from "../types/Permissions";
|
||||
import type { PermissionCollection } from "../types/Permissions";
|
||||
import { isPending } from "../../modules/pending";
|
||||
import { getFailure } from "../../modules/failure";
|
||||
|
||||
@@ -52,7 +52,7 @@ export function fetchPermissionsPending(
|
||||
}
|
||||
|
||||
export function fetchPermissionsSuccess(
|
||||
permissions: Permissions,
|
||||
permissions: PermissionCollection,
|
||||
namespace: string,
|
||||
name: string
|
||||
): Action {
|
||||
|
||||
@@ -13,7 +13,7 @@ import reducer, {
|
||||
FETCH_PERMISSIONS_SUCCESS,
|
||||
FETCH_PERMISSIONS_FAILURE
|
||||
} from "./permissions";
|
||||
import type { Permission, Permissions } from "../types/Permissions";
|
||||
import type { Permission, PermissionCollection } from "../types/Permissions";
|
||||
|
||||
const hitchhiker_puzzle42Permission_user_eins: Permission = {
|
||||
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_zwei
|
||||
];
|
||||
|
||||
@@ -8,4 +8,4 @@ export type Permission = {
|
||||
_links: Links
|
||||
};
|
||||
|
||||
export type Permissions = Permission[];
|
||||
export type PermissionCollection = Permission[];
|
||||
|
||||
Reference in New Issue
Block a user