From 01c2b3ef3df034b2d12065106a910e1423facd63 Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Thu, 5 Dec 2024 17:24:26 +0800 Subject: [PATCH] Remove class if an entity action has no text --- .../src/Volo.Abp.BlazoriseUI/Components/EntityAction.razor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.BlazoriseUI/Components/EntityAction.razor b/framework/src/Volo.Abp.BlazoriseUI/Components/EntityAction.razor index 9bd07ce7da..d913647264 100644 --- a/framework/src/Volo.Abp.BlazoriseUI/Components/EntityAction.razor +++ b/framework/src/Volo.Abp.BlazoriseUI/Components/EntityAction.razor @@ -17,7 +17,8 @@ Disabled=@Disabled> @if(!string.IsNullOrEmpty(Icon)) { - + var iconClass = Text.IsNullOrEmpty() ? "" : "me-1"; + } @Text