Skip to content

Commit

Permalink
LPS-196103 Adds js code only if we are adding pagesTreeSidenavToggleI…
Browse files Browse the repository at this point in the history
…d, so use the same conditions
  • Loading branch information
ealonso authored and brianchandotcom committed Dec 24, 2023
1 parent 6f84a37 commit 911efcb
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
PanelCategory panelCategory = (PanelCategory)request.getAttribute(ApplicationListWebKeys.PANEL_CATEGORY);
SiteAdministrationPanelCategoryDisplayContext siteAdministrationPanelCategoryDisplayContext = new SiteAdministrationPanelCategoryDisplayContext(liferayPortletRequest, null);
Group group = siteAdministrationPanelCategoryDisplayContext.getGroup();
%>

<c:if test="<%= siteAdministrationPanelCategoryDisplayContext.getGroup() != null %>">
Expand Down Expand Up @@ -105,7 +103,7 @@ Group group = siteAdministrationPanelCategoryDisplayContext.getGroup();
</c:if>
</c:if>

<c:if test="<%= (group != null) && !group.isCompany() && !group.isDepot() %>">
<c:if test="<%= (siteAdministrationPanelCategoryDisplayContext.getGroup() != null) && siteAdministrationPanelCategoryDisplayContext.isShowLayoutsTree() %>">
<aui:script sandbox="<%= true %>">
var pagesTreeToggle = document.getElementById(
'<portlet:namespace />pagesTreeSidenavToggleId'
Expand Down

0 comments on commit 911efcb

Please sign in to comment.