DEMPIERE-735 icons are not displaying after adding one item in Favorites Panel. Base on Patch from Richard Morales Herrera.
This commit is contained in:
parent
8c84198efc
commit
7da09afb1f
|
@ -21,6 +21,7 @@ import org.adempiere.util.Callback;
|
|||
import org.adempiere.webui.adwindow.ADWindow;
|
||||
import org.adempiere.webui.exception.ApplicationException;
|
||||
import org.adempiere.webui.session.SessionManager;
|
||||
import org.adempiere.webui.theme.ITheme;
|
||||
import org.adempiere.webui.theme.ThemeManager;
|
||||
import org.adempiere.webui.window.FDialog;
|
||||
import org.compiere.model.GridTab;
|
||||
|
@ -147,6 +148,9 @@ public class DPFavourites extends DashboardPanel implements EventListener<Event>
|
|||
hbox.appendChild(btnFavItem);
|
||||
btnFavItem.setLabel(label);
|
||||
btnFavItem.setTooltiptext(description);
|
||||
if (imageSrc.startsWith(ITheme.THEME_PATH_PREFIX))
|
||||
btnFavItem.setImage(imageSrc);
|
||||
else
|
||||
btnFavItem.setImage(ThemeManager.getThemeResource(imageSrc));
|
||||
btnFavItem.setDraggable(DELETE_FAV_DROPPABLE);
|
||||
btnFavItem.addEventListener(Events.ON_CLICK, this);
|
||||
|
|
Loading…
Reference in New Issue