Skip to content

Conversation

@terrerox
Copy link
Contributor

Description

Introduces a confirmation dialog before deleting items in the backups view to prevent accidental deletions. Refactors delete logic to handle both file viewer and list contexts.

Related Issues

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Testing Process

Additional Notes

Introduces a confirmation dialog before deleting items in the backups view to prevent accidental deletions. Refactors delete logic to handle both file viewer and list contexts.
@terrerox terrerox self-assigned this Dec 24, 2025
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 24, 2025

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: b088628
Status: ✅  Deploy successful!
Preview URL: https://34dcc92a.drive-web.pages.dev
Branch Preview URL: https://fix-backups-confirmation-mod.drive-web.pages.dev

View logs

}
};

const onDeleteSelectedItems = async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this function could be a little "weird" with the return inside the if

Maybe its better this way wdyt?:

if (isFileViewerOpen) {
await performDeleteItems(selectedItems);
} else {
openDeleteItemsDialog(selectedItems);
}

@sonarqubecloud
Copy link

@terrerox terrerox requested a review from larryrider December 29, 2025 13:32
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.

3 participants