Skip to content

Commit

Permalink
disable role options in create beneficiary final step
Browse files Browse the repository at this point in the history
  • Loading branch information
alexPopaCode4 committed Dec 27, 2024
1 parent 0f7f465 commit 9bf084c
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 9bf084c

Please sign in to comment.