IDEMPIERE-5740 Dashboard Views Gadget doesn't translate *24.png image name to z-icon name (#1859)

This commit is contained in:
hengsin 2023-05-29 20:44:20 +08:00 committed by GitHub
parent 295454b6e9
commit 6db8752c93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -152,7 +152,12 @@ public class DPViews extends DashboardPanel implements EventListener<Event> {
if (ThemeManager.isUseFontIconForImage()) if (ThemeManager.isUseFontIconForImage())
{ {
if (image.endsWith("16.png"))
image = image.replace("16.png", ""); image = image.replace("16.png", "");
else if (image.endsWith("24.png"))
image = image.replace("24.png", "");
else if (image.endsWith(".png"))
image = image.replace(".png", "");
btnViewItem.setIconSclass("z-icon-"+image); btnViewItem.setIconSclass("z-icon-"+image);
} }
else else