Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action's canRun() disables only the first action in the UI #6668

Closed
ekateiva opened this issue Jan 14, 2025 · 1 comment
Closed

Action's canRun() disables only the first action in the UI #6668

ekateiva opened this issue Jan 14, 2025 · 1 comment
Labels
bug Verified bug by the Nova team fix incoming A fix is in review
Milestone

Comments

@ekateiva
Copy link

  • Laravel Version: 11.37.0
  • Nova Version: 5.1.3
  • PHP Version: 8.3

Description:

When multiple actions have canRun(fn () => false), only first one is greyed out. The rest is not. If you run the action, you get an error, that you are not authorized to run it. However, I would expect that all 3 would be the same and not possible to click.

Given an example:
Image

The result:
Image

I would expect that all of those 3 action would be greyed out.

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

Just have a resource with multiple actions, and make all of them canRun(fn () => false)

@ekateiva ekateiva changed the title Action's canRun() disables only the first action in the list in the UI Action's canRun() disables only the first action in the UI Jan 14, 2025
@crynobone crynobone added bug Verified bug by the Nova team fix incoming A fix is in review labels Jan 14, 2025
@crynobone crynobone added this to the 5.1.x milestone Jan 14, 2025
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Verified bug by the Nova team fix incoming A fix is in review
Projects
None yet
Development

No branches or pull requests

2 participants