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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
3 deletions
-
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() |
|
|
|
|