-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui): removes edit drawer button from
uploads
collection edit vi…
…ew (#10426) ### What? Previously, the `uploads` collection edit view contained an unnecessary button in the file details which allowed opening the same document in a drawer. ### Why? This button was left over from `v2` when it was originally built to allow editing of uploads from different collection edit views that had `upload` type fields (relationship) within them. This edit drawer button is now a separate button on the Upload relationship component [here](https://github.com/payloadcms/payload/blob/4d7587d26a149313240086c298790f7da79b7376/packages/ui/src/fields/Upload/RelationshipContent/index.tsx#L109). ### How? Removes edit drawer button from the FileDetails component. #### Before: ![Screenshot 2025-01-07 at 1 49 18 PM](https://github.com/user-attachments/assets/50b2e789-69e7-47a5-99b8-ddbe1bf42f03) #### After: ![Screenshot 2025-01-07 at 1 47 51 PM](https://github.com/user-attachments/assets/31a56aac-cb96-4fda-bad5-00759820da02)
- Loading branch information
1 parent
ac97bfd
commit 9701fc6
Showing
2 changed files
with
4 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters