Skip to content

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

fix(secrets-permissions): Fix setTimeout and eye icon size

carlosmonastyrski3de5fa066bce
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewTableRow/SecretEditRow.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewTableRow/SecretEditRow.tsx
index f2f6f482d4..f0bf551fc7 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewTableRow/SecretEditRow.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/SecretOverviewTableRow/SecretEditRow.tsx
@@ -126,10 +126,9 @@ export const SecretEditRow = ({
}
}
if (secretValueHidden) {
- const resetTimeout = setTimeout(() => {
+ setTimeout(() => {
reset({ value: defaultValue || null });
}, 50);
- clearTimeout(resetTimeout);
setIsSecretBlurFocus.off();
} else {
reset({ value });
@@ -182,7 +181,7 @@ export const SecretEditRow = ({
<Tooltip
content={`You do not have access to view the current value${canEditSecretValue ? ", but you can set a new one" : "."}`}
>
- <FontAwesomeIcon className="pl-1" icon={faEyeSlash} />
+ <FontAwesomeIcon className="pl-2" size="sm" icon={faEyeSlash} />
</Tooltip>
)}
<div className="flex-grow border-r border-r-mineshaft-600 pl-1 pr-2">
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretItem.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretItem.tsx
index d86342e79c..a9245136fe 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretItem.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretItem.tsx
@@ -316,7 +316,7 @@ export const SecretItem = memo(
<Tooltip
content={`You do not have access to view the current value${canEditSecretValue ? ", but you can set a new one" : "."}`}
>
- <FontAwesomeIcon className="pr-2" icon={faEyeSlash} />
+ <FontAwesomeIcon className="pr-2" size="sm" icon={faEyeSlash} />
</Tooltip>
)}
{isOverriden ? (