The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: allow pausing branch projects again (#47636)
Han Qiao7b02aa2f0dcf
diff --git a/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx b/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsxindex 7b079440f76..a2bb05837e7 100644--- a/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx+++ b/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx@@ -63,8 +63,7 @@ const PauseProjectButton = () => {}const buttonDisabled =- isBranch ||- !projectPausingAllowedInOrg ||+ (!isBranch && !projectPausingAllowedInOrg) ||project === undefined ||isPaused ||!canPauseProject ||@@ -76,8 +75,7 @@ const PauseProjectButton = () => {if (isProjectUnhealthy)return 'Your project is unhealthy — restart it instead to restore normal operation'if (!isProjectActive) return 'Unable to pause project as project is not active'- if (isBranch) return 'Branch projects cannot be paused'- if (!projectPausingAllowedInOrg && !isFreePlan)+ if (!isBranch && !projectPausingAllowedInOrg && !isFreePlan)return 'Projects on a paid plan will always be running'return undefined}