Please add 'filters' and 'search' to 'getActions' method of Index and Lens vue components #4999
Unanswered
sanderbaas
asked this question in
Ideas & Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For some actions I adjust the fields based on which resources are selected. This works well as long as I don't use the 'Select All (x)' checkbox.
Because then the selected
resourcesis not an array with ID's, butresourcesis just the string 'all'.Would it be possible to add
filtersandsearchto the getActions method of resources/js/views/Index.js and resources/js/views/Lens.js, with the same values that are being used for the computed valueactionQueryString.Additionally maybe the selectedResources method of InteractsWithResourcesSelection that is used by NovaRequest could return all matching resources. However, this is also used in the method
availableActionsandavailableActionsOnIndexand I don't think that it is compatible.To be able to work with dependent fields, the NovaRequest that is being supplied to the callback function of the dependsOn method of a field should also contain
filtersandsearch. I think this is done in thesyncFieldsmethod ofresources/js/mixins/DependentFormField.js.Beta Was this translation helpful? Give feedback.
All reactions