Skip to content
Permalink
Browse files
Merge pull request #2229 from fbelzunc/JENKINS-32340-v2
[JENKINS-32340] Enable disabled dependencies
  • Loading branch information
daniel-beck committed May 1, 2016
2 parents bc1c2ca + a596152 commit 59f066462ce16585b0acfa0511e2358306f92805
@@ -173,6 +173,12 @@ Behaviour.specify("#filter-box", '_table', 0, function(e) {

function setEnableWidgetStates() {
for (var i = 0; i < pluginTRs.length; i++) {
var pluginMetadata = pluginTRs[i].jenkinsPluginMetadata;
if (pluginTRs[i].hasClassName('has-dependants-but-disabled')) {
if (pluginMetadata.enableInput.checked) {
pluginTRs[i].removeClassName('has-dependants-but-disabled');
}
}
markAllDependantsDisabled(pluginTRs[i]);
markHasDisabledDependencies(pluginTRs[i]);
}
@@ -68,7 +68,7 @@ THE SOFTWARE.
<th width="1">${%Uninstall}</th>
</tr>
<j:forEach var="p" items="${app.pluginManager.plugins}">
<tr class="plugin ${p.hasDependants()?'has-dependants':''} ${p.isDeleted()?'deleted':''}" data-plugin-id="${p.shortName}" data-plugin-name="${p.displayName}">
<tr class="plugin ${p.hasDependants()?'has-dependants':''} ${(p.hasDependants() &amp;&amp; !p.enabled)?'has-dependants-but-disabled':''} ${p.isDeleted()?'deleted':''}" data-plugin-id="${p.shortName}" data-plugin-name="${p.displayName}">
<j:set var="state" value="${p.enabled?'true':null}"/>
<td class="center pane enable" data="${state}">
<input type="checkbox" checked="${state}" onclick="flip(event)"
@@ -1424,6 +1424,12 @@ TABLE.fingerprint-in-build TD {
opacity: 0.2;
}

#plugins tr.has-dependants-but-disabled .enable input {
pointer-events: auto;
opacity: 1.0;
visibility: visible;
}

#plugins tr.has-disabled-dependency .enable input {
opacity: 0.4;
}

0 comments on commit 59f0664

Please sign in to comment.