Skip to content

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

fix(secret-sync): use neutral badge variant for disabled sync options (#8884)

Mahmoud Ghazy1243b7629a3e
diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/CloudflareWorkersReviewFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/CloudflareWorkersReviewFields.tsx
index 55ba457200..0cd1e0121b 100644
--- a/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/CloudflareWorkersReviewFields.tsx
+++ b/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/CloudflareWorkersReviewFields.tsx
@@ -26,7 +26,7 @@ export const CloudflareWorkersSyncOptionsReviewFields = () => {
<Detail>
<DetailLabel>Sync Plaintext and JSON Variables</DetailLabel>
<DetailValue>
- <Badge variant={syncNonSecretBindings ? "success" : "danger"}>
+ <Badge variant={syncNonSecretBindings ? "success" : "neutral"}>
{syncNonSecretBindings ? "Enabled" : "Disabled"}
</Badge>
</DetailValue>
diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncOptionsSection/CloudflareWorkersSyncOptionsSection.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncOptionsSection/CloudflareWorkersSyncOptionsSection.tsx
index b1fa0a4490..ac312f5435 100644
--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncOptionsSection/CloudflareWorkersSyncOptionsSection.tsx
+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncOptionsSection/CloudflareWorkersSyncOptionsSection.tsx
@@ -25,7 +25,7 @@ export const CloudflareWorkersSyncOptionsSection = ({ secretSync }: Props) => {
<Detail>
<DetailLabel>Sync Plaintext and JSON Variables</DetailLabel>
<DetailValue>
- <Badge variant={syncNonSecretBindings ? "success" : "danger"}>
+ <Badge variant={syncNonSecretBindings ? "success" : "neutral"}>
{syncNonSecretBindings ? "Enabled" : "Disabled"}
</Badge>
</DetailValue>