Browse Source

Merge pull request #23307 from abpframework/auto-merge/rel-9-2/3866

Merge branch rel-9.3 with rel-9.2
pull/23308/head
maliming 7 months ago
committed by GitHub
parent
commit
502a246aae
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      framework/src/Volo.Abp.BlazoriseUI/Components/EntityActions.razor.cs

6
framework/src/Volo.Abp.BlazoriseUI/Components/EntityActions.razor.cs

@ -42,10 +42,10 @@ public partial class EntityActions<TItem> : ComponentBase
{
Actions.Add(action);
}
private bool DisabledOrNoActions()
protected virtual bool DisabledOrNoActions()
{
return Disabled || !Actions.Any(t => t is { Visible: true, HasPermission: true });
return Disabled || (Actions.Any() && Actions.All(t => !t.Visible || !t.HasPermission));
}
protected override void OnInitialized()

Loading…
Cancel
Save