Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

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

Ivan Vasilovcf7975bc8586
diff --git a/apps/studio/components/interfaces/Storage/AnalyticBucketDetails/DecryptedReadOnlyInput.tsx b/apps/studio/components/interfaces/Storage/AnalyticBucketDetails/DecryptedReadOnlyInput.tsx
index 2ec51c5f151..7b9bae83c09 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticBucketDetails/DecryptedReadOnlyInput.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticBucketDetails/DecryptedReadOnlyInput.tsx
@@ -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">