Skip to content

Commit

Permalink
#10370: Fix the UI - Undeploy - option not showing when deploy folder…
Browse files Browse the repository at this point in the history
… is not named "load". (#11758)
  • Loading branch information
danlaguna authored and dsilvam committed May 30, 2017
1 parent 9a7c7c6 commit c276fb4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dotCMS/src/main/webapp/html/portlet/ext/osgi/bundles.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<%@ page import="com.dotcms.publisher.endpoint.bean.PublishingEndPoint" %>
<%@ page import="com.dotmarketing.util.UtilMethods" %>
<%@ page import="org.osgi.framework.Bundle" %>
<%@ page import="com.dotmarketing.util.OSGIUtil" %>
<%
request.setAttribute("requiredPortletAccess", "dynamic-plugins");
%>
Expand Down Expand Up @@ -35,6 +36,7 @@
%>
var sendingEndpoints = <%=UtilMethods.isSet(sendingEndpoints) && !sendingEndpoints.isEmpty()%>;
var deployPath = '<%=OSGIUtil.getInstance().getFelixDeployPath()%>';
</script>

<div class="buttonBoxLeft">
Expand Down Expand Up @@ -176,14 +178,14 @@
if (bundleData.state == <%=Bundle.ACTIVE%>) {
htmlContent += "<a href=\"javascript:bundles.stop('" + bundleData.jarFile + "','" + bundleData.bundleId + "')\"><%=LanguageUtil.get(pageContext, "OSGI-Stop")%></a>";
}
if (bundleData.location.indexOf(bundleData.separator) != -1 && bundleData.location.indexOf(bundleData.separator + "load" + bundleData.separator) != -1) {
if (bundleData.location.indexOf(bundleData.separator) != -1 && bundleData.location.indexOf(deployPath + bundleData.separator) != -1) {
htmlContent += "&nbsp;|&nbsp;<a href=\"javascript:bundles.undeploy('" + bundleData.jarFile + "','" + bundleData.bundleId + "')\"><%=LanguageUtil.get(pageContext, "OSGI-Undeploy")%></a>";
}
htmlContent += "</td></tr>";
dojo.place(htmlContent, "bundlesTable-body", "after");
if (bundleData.location.indexOf(bundleData.separator) != -1 && bundleData.location.indexOf(bundleData.separator + "load" + bundleData.separator) != -1) {
if (bundleData.location.indexOf(bundleData.separator) != -1 && bundleData.location.indexOf(deployPath + bundleData.separator) != -1) {
if(enterprise) {
popupMenus += "<div dojoType=\"dijit.Menu\" class=\"dotContextMenu\" id=\"popupTr" + (i++) +"\" contextMenuForWindow=\"false\" style=\"display: none;\" targetNodeIds=\"tr" + bundleData.jarFile + "\">";
if (sendingEndpoints) {
Expand Down

0 comments on commit c276fb4

Please sign in to comment.