mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 09:28:06 +00:00
feat: small text changes in kms permission
This commit is contained in:
+2
-7
@@ -259,16 +259,11 @@ export const PROJECT_PERMISSION_OBJECT: TProjectPermissionObject = {
|
|||||||
},
|
},
|
||||||
[ProjectPermissionSub.SecretFolders]: {
|
[ProjectPermissionSub.SecretFolders]: {
|
||||||
title: "Secret Folders",
|
title: "Secret Folders",
|
||||||
actions: [{ label: "Read", value: "read" }]
|
actions: [{ label: "Read Only", value: "read" }]
|
||||||
},
|
},
|
||||||
[ProjectPermissionSub.Kms]: {
|
[ProjectPermissionSub.Kms]: {
|
||||||
title: "KMS",
|
title: "KMS",
|
||||||
actions: [
|
actions: [{ label: "Modify", value: "edit" }]
|
||||||
{ label: "Read", value: "read" },
|
|
||||||
{ label: "Create", value: "create" },
|
|
||||||
{ label: "Modify", value: "edit" },
|
|
||||||
{ label: "Remove", value: "delete" }
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
[ProjectPermissionSub.Integrations]: {
|
[ProjectPermissionSub.Integrations]: {
|
||||||
title: "Integrations",
|
title: "Integrations",
|
||||||
|
|||||||
+17
-20
@@ -44,7 +44,6 @@ export const SecretPermissionConditions = ({ position = 0 }: Props) => {
|
|||||||
>
|
>
|
||||||
<SelectItem value="environment">Environment</SelectItem>
|
<SelectItem value="environment">Environment</SelectItem>
|
||||||
<SelectItem value="secretPath">Secret Path</SelectItem>
|
<SelectItem value="secretPath">Secret Path</SelectItem>
|
||||||
<SelectItem value="secretName">Secret Name</SelectItem>
|
|
||||||
</Select>
|
</Select>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
)}
|
)}
|
||||||
@@ -69,11 +68,7 @@ export const SecretPermissionConditions = ({ position = 0 }: Props) => {
|
|||||||
<SelectItem value={PermissionConditionOperators.$EQ}>Equal</SelectItem>
|
<SelectItem value={PermissionConditionOperators.$EQ}>Equal</SelectItem>
|
||||||
<SelectItem value={PermissionConditionOperators.$NEQ}>Not Equal</SelectItem>
|
<SelectItem value={PermissionConditionOperators.$NEQ}>Not Equal</SelectItem>
|
||||||
<SelectItem value={PermissionConditionOperators.$GLOB}>Glob Match</SelectItem>
|
<SelectItem value={PermissionConditionOperators.$GLOB}>Glob Match</SelectItem>
|
||||||
<SelectItem value={PermissionConditionOperators.$REGEX}>
|
|
||||||
Regex Match
|
|
||||||
</SelectItem>
|
|
||||||
<SelectItem value={PermissionConditionOperators.$IN}>Contains</SelectItem>
|
<SelectItem value={PermissionConditionOperators.$IN}>Contains</SelectItem>
|
||||||
<SelectItem value={PermissionConditionOperators.$ALL}>All</SelectItem>
|
|
||||||
</Select>
|
</Select>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
)}
|
)}
|
||||||
@@ -107,21 +102,23 @@ export const SecretPermissionConditions = ({ position = 0 }: Props) => {
|
|||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<div>
|
||||||
leftIcon={<FontAwesomeIcon icon={faPlus} />}
|
<Button
|
||||||
variant="star"
|
leftIcon={<FontAwesomeIcon icon={faPlus} />}
|
||||||
size="xs"
|
variant="star"
|
||||||
className="mt-3"
|
size="xs"
|
||||||
onClick={() =>
|
className="mt-3"
|
||||||
items.append({
|
onClick={() =>
|
||||||
lhs: "environment",
|
items.append({
|
||||||
operator: PermissionConditionOperators.$EQ,
|
lhs: "environment",
|
||||||
rhs: ""
|
operator: PermissionConditionOperators.$EQ,
|
||||||
})
|
rhs: ""
|
||||||
}
|
})
|
||||||
>
|
}
|
||||||
New Condition
|
>
|
||||||
</Button>
|
New Condition
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -190,7 +190,6 @@ export const SecretOverviewPage = () => {
|
|||||||
}, [isWorkspaceLoading, workspaceId, router.isReady]);
|
}, [isWorkspaceLoading, workspaceId, router.isReady]);
|
||||||
|
|
||||||
const userAvailableEnvs = currentWorkspace?.environments || [];
|
const userAvailableEnvs = currentWorkspace?.environments || [];
|
||||||
|
|
||||||
const [visibleEnvs, setVisibleEnvs] = useState(userAvailableEnvs);
|
const [visibleEnvs, setVisibleEnvs] = useState(userAvailableEnvs);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -523,6 +522,7 @@ export const SecretOverviewPage = () => {
|
|||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
console.log(isWorkspaceLoading, isProjectV3, isOverviewLoading);
|
||||||
if (isWorkspaceLoading || (isProjectV3 && isOverviewLoading)) {
|
if (isWorkspaceLoading || (isProjectV3 && isOverviewLoading)) {
|
||||||
return (
|
return (
|
||||||
<div className="container mx-auto flex h-screen w-full items-center justify-center px-8 text-mineshaft-50 dark:[color-scheme:dark]">
|
<div className="container mx-auto flex h-screen w-full items-center justify-center px-8 text-mineshaft-50 dark:[color-scheme:dark]">
|
||||||
|
|||||||
Reference in New Issue
Block a user