nova-settings
nova-settings copied to clipboard
dependsOn doesn't work for attributes in settings
Hello, the dependsOn method doesn't work for any of the fields inside the settings resource as the update-field request returns 404.
As an quick alternative, I think we should have support for outl1ne/nova-dependency-container I personally haven't used it in a while inside nova-settings, so it might need testing to see whether some nova release could have broken it.
second this. not even getting any error logs :) sends : PATCH to /nova-api/nova-settings/general/update-fields
https://nova.laravel.com/docs/4.0/resources/fields.html#dependent-fields
https://nova.laravel.com/docs/4.0/customization/fields.html#dependent-form-field
https://github.com/outl1ne/nova-settings/blob/d201cb181dd9c9920be036afc3c95a3e92626b42/routes/api.php#L22
add something like
Route::patch('/nova-api/nova-settings/{path}/update-fields', [SettingsController::class, 'sync']);
and add sync functionality to SettingsController
https://github.com/stepanenko3/nova-settings#using-dependson-with-out-package now has dependsOn fields support. Just FYI
Just to confirm, this is not implemented yet?
I'm attempting to make a Text field visible only when a Boolean field is true, but dependsOn
seems to be ignored.
Hello, any update on this topic? Is there a plan to fix this? Thank you!