Skip to content

Commit

Permalink
new object button style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Oct 5, 2021
1 parent a855ca0 commit b4a6a9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ private Component createNewObjectButton(String buttonId) {
CompositedIconBuilder builder = new CompositedIconBuilder();
builder.setBasicIcon(WebComponentUtil.getIconCssClass(newObjectButtonDisplayType), IconCssStyle.IN_ROW_STYLE)
.appendColorHtmlValue(WebComponentUtil.getIconColor(newObjectButtonDisplayType));
if (isCollectionViewPanel()) {
CompiledObjectCollectionView view = getObjectCollectionView();
if (ObjectCollectionViewUtil.isArchetypedCollectionView(view)) {
IconType plusIcon = new IconType();
plusIcon.setCssClass(GuiStyleConstants.CLASS_ADD_NEW_OBJECT);
plusIcon.setColor("green");
Expand Down Expand Up @@ -297,7 +298,7 @@ private DisplayType getNewObjectButtonStandardDisplayType() {
if (ObjectCollectionViewUtil.isArchetypedCollectionView(view)) {
return GuiDisplayTypeUtil.getNewObjectDisplayTypeFromCollectionView(view, getPageBase());
}
}
}

String sb = createStringResource("MainObjectListPanel.newObject").getString()
+ " "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ protected boolean isCollectionViewPanel() {
|| getObjectCollectionView() != null;
}

private boolean defaultCollectionExists() {
protected boolean defaultCollectionExists() {
return getCollectionViewForAllObject() != null;
}

Expand Down

0 comments on commit b4a6a9a

Please sign in to comment.