From a9e5c0a70dca163faf59735a1181b5c1431f3ba6 Mon Sep 17 00:00:00 2001 From: gumbarros Date: Fri, 1 Nov 2024 13:27:50 -0300 Subject: [PATCH] Use method group at Lookup --- src/Web/Areas/MasterData/Controllers/LookupController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Web/Areas/MasterData/Controllers/LookupController.cs b/src/Web/Areas/MasterData/Controllers/LookupController.cs index 150cfbcc0..311886bb7 100644 --- a/src/Web/Areas/MasterData/Controllers/LookupController.cs +++ b/src/Web/Areas/MasterData/Controllers/LookupController.cs @@ -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); } @@ -80,9 +80,9 @@ private void ConfigureLookupForm(JJFormView form, LookupParameters lookupParamet } } - private static Func 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