The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore(studio): remove physical backups disabled download button (#43160)
Danny White87919a08e6ea
diff --git a/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx b/apps/studio/components/interfaces/Database/Backups/BackupItem.tsxindex 05f5b0033f9..07c80f53372 100644--- a/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx+++ b/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx@@ -7,7 +7,6 @@ import { InlineLink } from 'components/ui/InlineLink'import { useBackupDownloadMutation } from 'data/database/backup-download-mutation'import type { DatabaseBackup } from 'data/database/backups-query'import { useAsyncCheckPermissions } from 'hooks/misc/useCheckPermissions'-import { DOCS_URL } from 'lib/constants'import { Badge, Tooltip, TooltipContent, TooltipTrigger } from 'ui'import { TimestampInfo } from 'ui-patterns'@@ -59,38 +58,29 @@ export const BackupItem = ({ index, isHealthy, backup, onSelectBackup }: BackupI>Restore</ButtonTooltip>- <ButtonTooltip- type="default"- icon={<Download />}- loading={isDownloading}- disabled={!canTriggerScheduledBackups || isDownloading || backup.isPhysicalBackup}- onClick={() => {- if (!projectRef) return console.error('Project ref is required')- downloadBackup({ ref: projectRef, backup })- }}- tooltip={{- content: {- side: 'bottom',- className: backup.isPhysicalBackup ? 'w-64' : '',- text: backup.isPhysicalBackup ? (- <>- Physical backups cannot be downloaded through the dashboard. You can still- download it via pgdump by following our guide{' '}- <InlineLink- href={`${DOCS_URL}/guides/troubleshooting/download-logical-backups`}- >- here- </InlineLink>- .- </>- ) : !canTriggerScheduledBackups ? (- 'You need additional permissions to download backups'- ) : undefined,- },- }}- >- Download- </ButtonTooltip>++ {!backup.isPhysicalBackup && (+ <ButtonTooltip+ type="default"+ icon={<Download />}+ loading={isDownloading}+ disabled={!canTriggerScheduledBackups || isDownloading}+ onClick={() => {+ if (!projectRef) return console.error('Project ref is required')+ downloadBackup({ ref: projectRef, backup })+ }}+ tooltip={{+ content: {+ side: 'bottom',+ text: !canTriggerScheduledBackups+ ? 'You need additional permissions to download backups'+ : undefined,+ },+ }}+ >+ Download+ </ButtonTooltip>+ )}</div>)return <Badge variant="warning">Backup In Progress...</Badge>