Only show the copy button when the value is decrypted. (#39035)

* Only show the copy button when the value is decrypted.

* Show copy if the value is not secure entry.

* Don't show copy when the value is loading.
This commit is contained in:
Ivan Vasilov authored and GitHub committed 2025-09-30 09:58:32 +02:00
1 parent f370cc6045
commit cf7975bc85
1 file changed
+2 -1
@@ -43,7 +43,8 @@ export const DecryptedReadOnlyInput = ({
return (
<Input
readOnly
copy
// If the value is secure, allow copying to clipboard if the value is revealed. Otherwise, always allow copying
copy={!secureEntry || (!isDecryptedValueLoading && showHidden)}
disabled
label={
<div className="flex items-center gap-x-2">