mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 16:26:37 +00:00
fix(secrets-permissions): Fix setTimeout and eye icon size
This commit is contained in:
+2
-3
@@ -126,10 +126,9 @@ export const SecretEditRow = ({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (secretValueHidden) {
|
if (secretValueHidden) {
|
||||||
const resetTimeout = setTimeout(() => {
|
setTimeout(() => {
|
||||||
reset({ value: defaultValue || null });
|
reset({ value: defaultValue || null });
|
||||||
}, 50);
|
}, 50);
|
||||||
clearTimeout(resetTimeout);
|
|
||||||
setIsSecretBlurFocus.off();
|
setIsSecretBlurFocus.off();
|
||||||
} else {
|
} else {
|
||||||
reset({ value });
|
reset({ value });
|
||||||
@@ -182,7 +181,7 @@ export const SecretEditRow = ({
|
|||||||
<Tooltip
|
<Tooltip
|
||||||
content={`You do not have access to view the current value${canEditSecretValue ? ", but you can set a new one" : "."}`}
|
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>
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
<div className="flex-grow border-r border-r-mineshaft-600 pl-1 pr-2">
|
<div className="flex-grow border-r border-r-mineshaft-600 pl-1 pr-2">
|
||||||
|
|||||||
+1
-1
@@ -316,7 +316,7 @@ export const SecretItem = memo(
|
|||||||
<Tooltip
|
<Tooltip
|
||||||
content={`You do not have access to view the current value${canEditSecretValue ? ", but you can set a new one" : "."}`}
|
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>
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
{isOverriden ? (
|
{isOverriden ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user