diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/AnalyticsBucket/Fields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/AnalyticsBucket/Fields.tsx
index 2d7f789dfd8..c3caabba08d 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/AnalyticsBucket/Fields.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/AnalyticsBucket/Fields.tsx
@@ -303,6 +303,7 @@ export const AnalyticsBucketFields = ({
:
}
onClick={() => setShowCatalogToken(!showCatalogToken)}
/>
@@ -408,18 +409,23 @@ export const AnalyticsBucketFields = ({
-
:
}
- className="w-7 absolute right-1 top-[4px]"
- onClick={() => setShowSecretAccessKey(!showSecretAccessKey)}
- />
+ {!editMode && (
+
:
}
+ className="w-7 absolute right-1 top-[4px]"
+ onClick={() => setShowSecretAccessKey(!showSecretAccessKey)}
+ />
+ )}
)}
/>
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/ClickHouse/Fields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/ClickHouse/Fields.tsx
index 26bcb5c71ea..099629cf804 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/ClickHouse/Fields.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/ClickHouse/Fields.tsx
@@ -83,26 +83,28 @@ export const ClickHouseFields = ({
labelOptional="Optional"
description={
editMode
- ? 'Enter a new password to replace the stored one. The eye button shows only what you enter.'
+ ? 'Enter a new password to replace the stored one.'
: 'Leave blank if the ClickHouse user has no password.'
}
>
field.onChange(event.target.value)}
actions={
-
- : }
- onClick={() => setShowPassword(!showPassword)}
- />
-
+ !editMode && (
+
+ : }
+ onClick={() => setShowPassword(!showPassword)}
+ />
+
+ )
}
/>
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx
index 338e6955492..ea5231e0743 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx
@@ -405,7 +405,7 @@ const DuckLakeCustomFields = ({
field.onChange(event.target.value)}
actions={
-
- : }
- onClick={() => setShowCatalogUrl(!showCatalogUrl)}
- />
-
+ !editMode && (
+
+ : }
+ onClick={() => setShowCatalogUrl(!showCatalogUrl)}
+ />
+
+ )
}
/>
@@ -520,16 +523,21 @@ const DuckLakeCustomFields = ({
-
:
}
- className="w-7 absolute right-6 top-[4px]"
- onClick={() => setShowSecretAccessKey(!showSecretAccessKey)}
- />
+ {!editMode && (
+
:
}
+ className="w-7 absolute right-6 top-[4px]"
+ onClick={() => setShowSecretAccessKey(!showSecretAccessKey)}
+ />
+ )}
)}
/>
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/Snowflake/Fields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/Snowflake/Fields.tsx
index 137f9fde687..c42033e66d9 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/Snowflake/Fields.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/Snowflake/Fields.tsx
@@ -239,21 +239,23 @@ export const SnowflakeFields = ({
field.onChange(event.target.value)}
actions={
-
- : }
- onClick={() => setShowPrivateKeyPassphrase(!showPrivateKeyPassphrase)}
- />
-
+ !editMode && (
+
+ : }
+ onClick={() => setShowPrivateKeyPassphrase(!showPrivateKeyPassphrase)}
+ />
+
+ )
}
/>