Skip to content

Commit 3dbc9e8

Browse files
victorg1991brianchandotcom
authored andcommitted
LPD-68645 Don't show repeatable buttons in view mode
1 parent adaecb5 commit 3dbc9e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/apps/layout/layout-taglib/src/main/java/com/liferay/layout/taglib/servlet/taglib/renderer/LayoutStructureRenderer.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,11 @@ private void _renderFormRelationshipStyledLayoutStructureItem(
11241124
}
11251125
}
11261126

1127-
if (formRelationshipStyledLayoutStructureItem.isRepeatable()) {
1127+
if (formRelationshipStyledLayoutStructureItem.isRepeatable() &&
1128+
!Objects.equals(
1129+
_renderLayoutStructureDisplayContext.getLayoutMode(),
1130+
Constants.READ)) {
1131+
11281132
_renderReactComponent(
11291133
"{FormRelationshipAddButton} from layout-taglib/render",
11301134
HashMapBuilder.<String, Object>put(

0 commit comments

Comments
 (0)