Skip to content

Conversation

@JammingBen
Copy link
Contributor

And adds a tooltip explaining why the file can't be deleted. This is helpful when opening a file with Collabora.

closes opencloud-eu/opencloud#1195

@JammingBen JammingBen self-assigned this Oct 13, 2025
Copilot AI review requested due to automatic review settings October 13, 2025 12:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds functionality to show a disabled delete button with a tooltip for locked files instead of hiding the button entirely. The change improves user experience by providing visual feedback and explanation when files cannot be deleted due to being locked.

Key changes:

  • Moved locked file check from isVisible to isDisabled property
  • Added tooltip explaining why locked files can't be deleted
  • Updated tests to cover the new disabled state behavior

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
useFileActionsDelete.ts Implements disabled state for locked files with explanatory tooltip
useFileActionsDelete.spec.ts Adds comprehensive test coverage for the new disabled state functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

And adds a tooltip explaining why the file can't be deleted. This is helpful when opening a file with Collabora.
@JammingBen JammingBen force-pushed the feat/delete-locked-file-tooltip branch from 8c7684c to e29315a Compare October 14, 2025 07:56
Copy link
Contributor

@AlexAndBear AlexAndBear left a comment

Choose a reason for hiding this comment

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

🤩

@JammingBen JammingBen merged commit 188e080 into main Oct 14, 2025
28 checks passed
@JammingBen JammingBen deleted the feat/delete-locked-file-tooltip branch October 14, 2025 08:48
@openclouders openclouders mentioned this pull request Oct 14, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delete files from tab menu not working

3 participants