payload icon indicating copy to clipboard operation
payload copied to clipboard

Document Actions Missing in Drawer

Open tobiasiv opened this issue 1 year ago • 1 comments

Link to reproduction

No response

Payload Version

3.0.0-beta.71

Node Version

v20.9.0

Next.js Version

15.0.0-canary.77

Describe the Bug

When editing a document in a drawer, the actions to duplicate and delete are missing

Reproduction Steps

  1. Clone the payload 3.0 demo
  2. Add a user relationship field to the pages collection:
    {
      slug: 'pages',
      admin: {
        useAsTitle: 'title',
      },
      fields: [
        {
          name: 'title',
          type: 'text',
        },
        {
          name: 'content',
          type: 'richText',
        },
        {
          name: 'user',
          type: 'relationship',
          relationTo: 'users',
        },
      ],
    },
  1. Update the following code from the user collection:
      access: {
        delete: () => true,
        update: () => false,
      },
  1. Run pnpm dev
  2. Ensure that the delete action is available when editing a user outside of the drawer
  3. Select a user within a pages document
  4. Open the drawer to edit the user
  5. The delete action is unavailable

Adapters and Plugins

No response

tobiasiv avatar Jul 30 '24 09:07 tobiasiv

Hey @tobiasiv — we will check into this. I believe it is intentional but I'll get with the team to double-check. We will need to brainstorm the desired UX for duplicating from a drawer, but we should be able to figure it out.

jmikrut avatar Jul 30 '24 13:07 jmikrut

This was done in #7679 and has been released since v3.0.0-beta.104.

jacobsfletch avatar Nov 22 '24 18:11 jacobsfletch

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.

github-actions[bot] avatar Nov 24 '24 04:11 github-actions[bot]