Skip to content

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

ref: Allow for Vercel-managed projects removal (#37013)

Kamil Ogórek8436b31441bd
diff --git a/apps/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectPanel.tsx b/apps/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectPanel.tsx
index 051ad436698..37834a42251 100644
--- a/apps/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectPanel.tsx
+++ b/apps/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectPanel.tsx
@@ -11,32 +11,27 @@ export const DeleteProjectPanel = () => {
if (project === undefined) return null
+ const title =
+ selectedOrganization?.managed_by === 'vercel-marketplace'
+ ? 'Deleting this project will also remove your database and uninstall the resource on Vercel.'
+ : 'Deleting this project will also remove your database.'
+ const description =
+ selectedOrganization?.managed_by === 'vercel-marketplace'
+ ? 'Make sure you have made a backup if you want to keep your data, and that no Vercel project is connected to this resource.'
+ : 'Make sure you have made a backup if you want to keep your data.'
+
return (
<section id="delete-project">
<FormHeader title="Delete Project" description="" />
- {selectedOrganization?.managed_by !== 'vercel-marketplace' ? (
- <Alert_Shadcn_ variant="destructive">
- <CriticalIcon />
- <AlertTitle_Shadcn_>
- Deleting this project will also remove your database.
- </AlertTitle_Shadcn_>
- <AlertDescription_Shadcn_>
- Make sure you have made a backup if you want to keep your data.
- </AlertDescription_Shadcn_>
- <div className="mt-2">
- <DeleteProjectButton />
- </div>
- </Alert_Shadcn_>
- ) : (
- <PartnerManagedResource
- partner="vercel-marketplace"
- resource="Projects"
- cta={{
- installationId: selectedOrganization?.partner_id,
- message: 'Delete project in Vercel Marketplace',
- }}
- />
- )}
+
+ <Alert_Shadcn_ variant="destructive">
+ <CriticalIcon />
+ <AlertTitle_Shadcn_ className="mt-2">{title}</AlertTitle_Shadcn_>
+ <AlertDescription_Shadcn_>{description}</AlertDescription_Shadcn_>
+ <div className="mt-2">
+ <DeleteProjectButton />
+ </div>
+ </Alert_Shadcn_>
</section>
)
}