Skip to content

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

fix: satisfy KMS form lint

Andrew Huangb3f97665ee09
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/GcpKmsForm.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/GcpKmsForm.tsx
index 455b56de3d..1f7f28f71c 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/GcpKmsForm.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgEncryptionTab/GcpKmsForm.tsx
@@ -465,6 +465,10 @@ export const GcpKmsForm = ({
/>
);
+ let submitLabel = "Add KMS";
+ if (kms) submitLabel = "Save Changes";
+ if (mode === "credentials") submitLabel = "Update Credentials";
+
const formActions = (
<>
<Button type="button" variant="ghost" onClick={onCancel}>
@@ -476,7 +480,7 @@ export const GcpKmsForm = ({
isPending={isSubmitting}
isDisabled={isSubmitting || Boolean(kms && !isDirty)}
>
- {mode === "credentials" ? "Update Credentials" : kms ? "Save Changes" : "Add KMS"}
+ {submitLabel}
</Button>
</>
);