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

DependencyContainer doesnot apply the conditions on displaying action modal #15

Open
ahmadmhm opened this issue Nov 14, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@ahmadmhm
Copy link

Iwrtie this codes in a action class

public function fields(NovaRequest $request)
{
return [
Select::make(__('Status'), 'insurance_policy_status')
->options([
'no_insurance' => __('No Request Insurance'),
'in_progress' => __('In Progress Insurance'),
'rejected' => __('Rejected Insurance'),
'done' => ('Done Insurance'),
]),
DependencyContainer::make([
Image::make(
('Insurance Image'), 'image')
->path('images/loads-insurance'),
])->nullable()->dependsOnNotIn('insurance_policy_status', ['no_insurance','in_progress','rejected']),
];
}

But when It shows modal, the image field is shown. It must doesnot show on modal opening

Screenshot from 2022-11-14 15-24-12
The ''تصویر بیمه نامه" field is the image that must appearing on selecting the last option in the select box.

@alexwenzel alexwenzel added the help wanted Extra attention is needed label Feb 20, 2023
@jmverges
Copy link

+1 here too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants