Closed sunnydesign closed 10 months ago
When we have more than one action and want to disallow all of them and disable in the UI by canRun() method, in the UI will disable only first action.
canRun()
false
canRun
public function actions(NovaRequest $request) { return [ resolve(FirstAction::class) ->canRun(fn ($request, $building) => false), resolve(SecondAction::class) ->canRun(fn ($request, $building) => false), ]; }
This has been fixed and will be included in the next release. 👍
Description:
When we have more than one action and want to disallow all of them and disable in the UI by
canRun()
method, in the UI will disable only first action.Detailed steps to reproduce the issue on a fresh Nova installation:
false
from thecanRun
callback) :