Skip to content

Commit

Permalink
Use method group at Lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
gumbarros committed Nov 1, 2024
1 parent 874cdb2 commit a9e5c0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Web/Areas/MasterData/Controllers/LookupController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private void ConfigureLookupForm(JJFormView form, LookupParameters lookupParamet

if (!lookupParameters.EnableElementActions)
{
foreach (var action in form.GridView.ToolbarActions.Where(IsLookupAction()))
foreach (var action in form.GridView.ToolbarActions.Where(IsLookupAction))
{
action.SetVisible(false);
}
Expand Down Expand Up @@ -80,9 +80,9 @@ private void ConfigureLookupForm(JJFormView form, LookupParameters lookupParamet
}
}

private static Func<BasicAction, bool> IsLookupAction()
private static bool IsLookupAction(BasicAction action)
{
return action => action is not LegendAction
return action is not LegendAction
&& action is not RefreshAction
&& action is not FilterAction
&& action is not ConfigAction
Expand Down

0 comments on commit a9e5c0a

Please sign in to comment.