Skip to content

fix: disable backup file search until a destination is selected - #5933

Open
veqzo wants to merge 1 commit into
Dokploy:canaryfrom
veqzo:fix/5892-backup-file-dropdown
Open

veqzo wants to merge 1 commit into
Dokploy:canaryfrom
veqzo:fix/5892-backup-file-dropdown

Conversation

@veqzo

@veqzo veqzo commented Nov 7, 2026 •

Copy link
Copy Markdown

What is this PR about?

In the restore dialogs, the backup file search can be opened before a destination is selected. Without a destination there is nothing to search, so the dropdown shows no useful result.

This PR disables the file search button until a destination is selected (disabled={!destinationId}), in both restore dialogs:

  • apps/dokploy/components/dashboard/database/backups/restore-backup.tsx
  • apps/dokploy/components/dashboard/application/volume-backups/restore-volume-backups.tsx

Checklist

Tests

  • Manual test on a local Dokploy instance: with no destination, the file search button is disabled. After selecting a destination, it is enabled and lists the backup files.
  • pnpm typecheck and Biome pass.

Issues related (if applicable)

Closes #5892

Screenshots (if applicable)

5892-disabled 5892-enabled

The backup file list is only fetched once a destination is set, so the
search dropdown opened with nothing to show. Disable it in the database
and volume restore dialogs until a destination is chosen.

Refs Dokploy#5892
@veqzo
veqzo requested a review from Siumauricio as a code owner November 7, 2026 17:07

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The backup file search dropdown is active.

1 participant