Skip to content

Commit

Permalink
adding layered icon for shadow of resource in maintenance mode (MID-6…
Browse files Browse the repository at this point in the history
…932)
  • Loading branch information
skublik committed Jul 12, 2021
1 parent 6b81b23 commit 8cf0ced
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3864,10 +3864,25 @@ public static CompositedIcon createAccountIcon(ShadowType shadow, PageBase pageB
} else {
builder.appendLayerIcon(icon, IconCssStyle.TOP_RIGHT_STYLE);
}

}
builder.setBasicIcon(iconCssClass, IconCssStyle.BOTTOM_RIGHT_FOR_COLUMN_STYLE);

if (shadow.getResourceRef() != null && shadow.getResourceRef().getObject() != null
&& ResourceTypeUtil.isInMaintenance(shadow.getResourceRef().getObject())) {
IconType icon = new IconType();
icon.setCssClass("fa fa-wrench " + GuiStyleConstants.CLASS_ICON_STYLE_MAINTENANCE);
if (isColumn) {
builder.appendLayerIcon(icon, IconCssStyle.BOTTOM_LEFT_FOR_COLUMN_STYLE);
} else {
builder.appendLayerIcon(icon, IconCssStyle.BOTTOM_LEFT_STYLE);
}
if (StringUtils.isNotBlank(title)){
title = title + "\n " + pageBase.createStringResource("ChangePasswordPanel.legendMessage.maintenance").getString();
} else {
title = pageBase.createStringResource("ChangePasswordPanel.legendMessage.maintenance").getString();
}
}

if (BooleanUtils.isTrue(shadow.isDead())) {
IconType icon = new IconType();
icon.setCssClass("fa fa-times-circle " + GuiStyleConstants.RED_COLOR);
Expand Down

0 comments on commit 8cf0ced

Please sign in to comment.