Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: only show save/discard changes if key or value is dirty
Scott Wilson1ecf735b9624
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsxindex b768b14081..b2478a7057 100644--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretTableRow/SecretEditTableRow.tsx@@ -225,7 +225,7 @@ export const SecretEditTableRow = ({setFocus,getFieldState,watch,- formState: { isDirty, isSubmitting }+ formState: { isDirty, dirtyFields, isSubmitting }} = useForm({defaultValues: {// In batch mode with a pending value change, use defaultValue (from merged data which@@ -925,7 +925,10 @@ export const SecretEditTableRow = ({/></div><div className="flex w-fit items-start justify-end space-x-2 self-start pl-2 transition-all">- {isDirty && !isImportedSecret && !isBatchMode ? (+ {isDirty &&+ (dirtyFields.key || dirtyFields.value) &&+ !isImportedSecret &&+ !isBatchMode ? (<><ProjectPermissionCanI={isCreatable ? ProjectPermissionActions.Create : ProjectPermissionActions.Edit}