Browse Source

Remove class if an entity action has no text

pull/21547/head
liangshiwei 1 year ago
parent
commit
01c2b3ef3d
  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