mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 15:40:47 +00:00
* fix: update project permission types * fix: permissions * fix: PR changes * chore: update docs * fix: greptile changes * fix: secret imports router changes * fix: type change * fix: lint * fix: type change * fix: check plan type in publish * fix: permissions * fix: import change * fix: lint fix
23 lines
596 B
TypeScript
23 lines
596 B
TypeScript
import { ProjectPermissionSub } from "@app/context/ProjectPermissionContext/types";
|
|
|
|
import { ConditionsFields } from "./ConditionsFields";
|
|
|
|
type Props = {
|
|
position?: number;
|
|
isDisabled?: boolean;
|
|
};
|
|
|
|
export const SecretEventPermissionConditions = ({ position = 0, isDisabled }: Props) => {
|
|
return (
|
|
<ConditionsFields
|
|
isDisabled={isDisabled}
|
|
subject={ProjectPermissionSub.SecretEvents}
|
|
position={position}
|
|
selectOptions={[
|
|
{ value: "environment", label: "Environment Slug" },
|
|
{ value: "secretPath", label: "Secret Path" }
|
|
]}
|
|
/>
|
|
);
|
|
};
|