Browse Source

Merge pull request #21547 from abpframework/entityactions

Remove class if an entity action has no text
pull/21580/head
Enis Necipoglu 2 years ago
committed by GitHub
parent
commit
a03c6613bf
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      framework/src/Volo.Abp.BlazoriseUI/Components/EntityAction.razor

3
framework/src/Volo.Abp.BlazoriseUI/Components/EntityAction.razor

@ -17,7 +17,8 @@
Disabled=@Disabled>
@if(!string.IsNullOrEmpty(Icon))
{
<Icon Name="@Icon" Class="me-1"/>
var iconClass = Text.IsNullOrEmpty() ? "" : "me-1";
<Icon Name="@Icon" Class="@iconClass"/>
}
<Span>
@Text

Loading…
Cancel
Save