nova-settings icon indicating copy to clipboard operation
nova-settings copied to clipboard

dependsOn doesn't work for attributes in settings

Open om0x1ar opened this issue 2 years ago • 6 comments

Hello, the dependsOn method doesn't work for any of the fields inside the settings resource as the update-field request returns 404.

image

om0x1ar avatar Oct 06 '22 19:10 om0x1ar

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.

KasparRosin avatar Oct 07 '22 07:10 KasparRosin

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

chrillep avatar Nov 04 '22 22:11 chrillep

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

chrillep avatar Nov 19 '22 18:11 chrillep

https://github.com/stepanenko3/nova-settings#using-dependson-with-out-package now has dependsOn fields support. Just FYI

chrillep avatar Mar 10 '23 12:03 chrillep

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.

shane-smith avatar Sep 12 '23 03:09 shane-smith

Hello, any update on this topic? Is there a plan to fix this? Thank you!

devskio avatar Feb 14 '24 14:02 devskio