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