Skip to content

Commit

Permalink
feat: Move Global JS Variable definition in Portal Layer - MEED-7003 -
Browse files Browse the repository at this point in the history
  • Loading branch information
boubaker committed Sep 6, 2024
1 parent 9b8097a commit e67615e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions layout-webapp/src/main/webapp/WEB-INF/jsp/siteNavigation.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
boolean isAdministrator = aclService.isAdministrator(request.getRemoteUser());
boolean canManageSiteNavigation = aclService.canEditNavigation(siteKey, request.getRemoteUser());
if (canManageSiteNavigation) {
String siteName = userNavigation.getKey().getName(); // In case, it's global site
%>
<div class="VuetifyApp">
<div id="siteNavigation">
<script type="text/javascript">
eXo.env.portal.siteKeyName = '<%=siteName%>';
eXo.env.portal.isAdministrator = <%=isAdministrator%>;
eXo.env.portal.canManageSiteNavigation = <%=canManageSiteNavigation%>;
require(['PORTLET/layout/SiteNavigation'], app => app.init(<%=canManageSiteNavigation%>));
Expand Down

0 comments on commit e67615e

Please sign in to comment.