Skip to content

Pivot Actions don't appear on resource table rows when showInline() is used #5151

@puzzledmonkey

Description

@puzzledmonkey
  • Laravel Version: 9.41.0
  • Nova Version: 4.19.4
  • PHP Version: 8.1.12
  • Database Driver & Version: n/a
  • Operating System and Version: n/a
  • Browser type and version: n/a
  • Reproduction Repository: n/a

Description:

Pivot Actions annotated with showInline() do now show up on the inline actions menu

Detailed steps to reproduce the issue on a fresh Nova installation:

Create 2 resources with a BelongsToMany relationship with a pivot action using showInline():

BelongsToMany::make('Secondary')->actions(function () {
    return [
        (new Actions\TestPivotAction())->showInline(),
    ];
}),

Observe that the action appears when selecting the resource checkbox in the main 'Actions' dropdown menu above the resource table, but doesn't show up in the inline actions menu on the individual resource rows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions