Skip to content

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

[FE-2553] chore(studio): only show replication moved CTA if replication is enabled (#43479)

Alaister Young56d97ed7fd06
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
index 2fdfcf89b68..5a8a523cda5 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx
@@ -25,8 +25,15 @@ export const InfrastructureInfo = () => {
const { ref } = useParams()
const { data: project } = useSelectedProjectQuery()
- const { projectAuthAll: authEnabled, projectSettingsDatabaseUpgrades: showDatabaseUpgrades } =
- useIsFeatureEnabled(['project_auth:all', 'project_settings:database_upgrades'])
+ const {
+ projectAuthAll: authEnabled,
+ projectSettingsDatabaseUpgrades: showDatabaseUpgrades,
+ databaseReplication: showReplication,
+ } = useIsFeatureEnabled([
+ 'project_auth:all',
+ 'project_settings:database_upgrades',
+ 'database:replication',
+ ])
const {
data,
@@ -71,7 +78,7 @@ export const InfrastructureInfo = () => {
<>
<ScaffoldDivider />
- {project?.cloud_provider !== 'FLY' && (
+ {project?.cloud_provider !== 'FLY' && showReplication && (
<ScaffoldContainer>
<ScaffoldSection isFullWidth>
<NoticeBar