Skip to content

Commit

Permalink
Merge pull request #461 from code4romania/439-ngo-admin-cazuri-flow-a…
Browse files Browse the repository at this point in the history
…dd-case-users-should-not-be-able-to-select-both-a-role-as-well-as-luare-in-evidenta-caz

disable role options in create beneficiary final step
  • Loading branch information
gheorghelupu17 authored Dec 30, 2024
2 parents 376eb80 + 9bf084c commit cdd9216
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,11 @@ protected function getSteps(): array
$roles[-1] = __('beneficiary.section.specialists.labels.without_role');

return $roles;
}),
})
->disableOptionWhen(fn (Get $get, string $value) => $value === '-1' ?
array_diff($get('roles'), ['-1']):
in_array('-1', $get('roles')))
->live(),
]),
]),
];
Expand Down

0 comments on commit cdd9216

Please sign in to comment.