mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
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:
1 parent
f370cc6045
commit
cf7975bc85
1 file changed
+2
-1
+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">
|
||||
|
||||
Reference in new issue
Block a user