Skip to content

CP Listing UI shows checkboxes for bulk actions, even when disabled #14849

Description

@FlorianMoser

Bug description

<Listing
  :allowBulkActions="false"
  :action-url="/action/url"
/>

shows the checkboxes for bulk actions:

Image

What I tried:

In the action PHP file, returned false in the authorizeBulk() and visibleToBulk() methods:

    public function authorizeBulk($user, $items)
    {
        return false;
    }

    public function visibleToBulk($items)
    {
        return false;
    }

In the action controller, returned an empty collection in the bulkActions() method:

    public function bulkActions(Request $request)
    {
        return collect([]);
    }

How to reproduce

  1. Create a Vue page for the CP
  2. Add a Listing UI element
  3. Add at least one action

Logs

Environment

Environment
Laravel Version: 13.14.0
PHP Version: 8.4.22
Composer Version: 2.9.5
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: UTC
Locale: de_CH

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: database
Database: mysql
Logs: stack / single
Mail: smtp
Queue: database
Session: database

Storage
public/storage: NOT LINKED

Statamic
Addons: 0
License Key: Set
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 6.20.2 PRO

Installation

Existing Laravel app

Additional details

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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