Skip to content

Commit

Permalink
fixing icons for archetype table
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Jun 7, 2019
1 parent b2599fb commit 736cf86
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -132,6 +132,9 @@ public static <O extends ObjectType> IColumn<SelectableBean<O>, String> createIc

@Override
protected DisplayType getIconDisplayType(IModel<SelectableBean<O>> rowModel){
if (rowModel.getObject().getValue() instanceof ArchetypeType && ((ArchetypeType)rowModel.getObject().getValue()).getArchetypePolicy() != null) {
return ((ArchetypeType)rowModel.getObject().getValue()).getArchetypePolicy().getDisplay();
}
DisplayType displayType = WebComponentUtil.getArchetypePolicyDisplayType(rowModel.getObject().getValue(), pageBase);
if (displayType != null){
String disabledStyle = "";
Expand Down Expand Up @@ -191,6 +194,8 @@ private static <T extends ObjectType> String getIconColumnValue(IModel<Selectabl
return GuiStyleConstants.EVO_CASE_OBJECT_ICON;
} else if (type.equals(CaseWorkItemType.class)) {
return GuiStyleConstants.CLASS_OBJECT_WORK_ITEM_ICON;
} else if (ShadowType.class.equals(type)) {
return GuiStyleConstants.EVO_ARCHETYPE_TYPE_ICON;
}

return "";
Expand Down

0 comments on commit 736cf86

Please sign in to comment.