Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

style(pam): sort permission condition select options alphabetically

Bernie Gandin7b6f40d90b80
diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/components/PamAccountPermissionConditions.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/components/PamAccountPermissionConditions.tsx
index c73ae02d1d..736ff1a7db 100644
--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/PamAccountPermissionConditions.tsx
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/PamAccountPermissionConditions.tsx
@@ -14,21 +14,11 @@ export const PamAccountPermissionConditions = ({ position = 0, isDisabled }: Pro
subject={ProjectPermissionSub.PamAccounts}
position={position}
selectOptions={[
- {
- value: "resourceName",
- label: "Resource Name",
- description: "PAM resource name"
- },
{
value: "accountName",
label: "Account Name",
description: "PAM account name"
},
- {
- value: "resourceType",
- label: "Resource Type",
- description: "PAM resource type (e.g. postgres, mysql, ssh)"
- },
{
value: "metadataKey",
label: "Metadata Key",
@@ -38,6 +28,16 @@ export const PamAccountPermissionConditions = ({ position = 0, isDisabled }: Pro
value: "metadataValue",
label: "Metadata Value",
description: "The value of a metadata pair (use with $elemMatch for nested matching)"
+ },
+ {
+ value: "resourceName",
+ label: "Resource Name",
+ description: "PAM resource name"
+ },
+ {
+ value: "resourceType",
+ label: "Resource Type",
+ description: "PAM resource type (e.g. postgres, mysql, ssh)"
}
]}
/>
diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/components/PamResourcePermissionConditions.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/components/PamResourcePermissionConditions.tsx
index 8381864d99..61eb173d5f 100644
--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/PamResourcePermissionConditions.tsx
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/PamResourcePermissionConditions.tsx
@@ -14,16 +14,6 @@ export const PamResourcePermissionConditions = ({ position = 0, isDisabled }: Pr
subject={ProjectPermissionSub.PamResources}
position={position}
selectOptions={[
- {
- value: "name",
- label: "Resource Name",
- description: "PAM resource name"
- },
- {
- value: "resourceType",
- label: "Resource Type",
- description: "PAM resource type (e.g. postgres, mysql, ssh)"
- },
{
value: "metadataKey",
label: "Metadata Key",
@@ -33,6 +23,16 @@ export const PamResourcePermissionConditions = ({ position = 0, isDisabled }: Pr
value: "metadataValue",
label: "Metadata Value",
description: "The value of a metadata pair (use with $elemMatch for nested matching)"
+ },
+ {
+ value: "name",
+ label: "Resource Name",
+ description: "PAM resource name"
+ },
+ {
+ value: "resourceType",
+ label: "Resource Type",
+ description: "PAM resource type (e.g. postgres, mysql, ssh)"
}
]}
/>