Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Frost2012-10-01 09:57:18 -0400
committerChristopher Frost2012-10-01 09:57:18 -0400
commitf4a469ab2847a52c3bef91f3eeb37b971540bba4 (patch)
treed4f75cf4e6496d23b6c797c62d324bbb47e7dc3c
parentaffdb22c104bf0af46f83ffe61969e4578757737 (diff)
downloadorg.eclipse.virgo.kernel-f4a469ab2847a52c3bef91f3eeb37b971540bba4.tar.gz
org.eclipse.virgo.kernel-f4a469ab2847a52c3bef91f3eeb37b971540bba4.tar.xz
org.eclipse.virgo.kernel-f4a469ab2847a52c3bef91f3eeb37b971540bba4.zip
388190 Spring powered information is always displayed for a bundle in the Artifacts tab of the admin console.
-rw-r--r--org.eclipse.virgo.management.console/src/main/webapp/js/artifacts.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/org.eclipse.virgo.management.console/src/main/webapp/js/artifacts.js b/org.eclipse.virgo.management.console/src/main/webapp/js/artifacts.js
index 1c32dffd..45e69254 100644
--- a/org.eclipse.virgo.management.console/src/main/webapp/js/artifacts.js
+++ b/org.eclipse.virgo.management.console/src/main/webapp/js/artifacts.js
@@ -204,22 +204,31 @@ var Tree = function() {
fxContainer.append(self.getArtifactAttribute('Type: ' + fullArtifact.type));
fxContainer.append(self.getArtifactAttribute(fullArtifact.state, 'state-' + fullArtifact.state));
+ var spring = false;
$.each(fullArtifact.properties, function(key, value){
+ if(key == 'Spring'){
+ spring = true;
+ fxContainer.append(self.getArtifactAttribute('Spring Powered', key));
+ }
if(value == 'true' || value == true){
- if(key == 'Spring' || key == 'Scoped' || key == 'Atomic' || key == 'Scoped-Atomic'){
+ if(key == 'Scoped' || key == 'Atomic' || key == 'Scoped-Atomic'){
fxContainer.append(self.getArtifactAttribute(key, key));
} else {
fxContainer.append(self.getArtifactAttribute(key));
}
} else {
if(key == 'Bundle Id'){
- fxContainer.append(self.getArtifactAttribute(key + ': ' + value, null, util.getCurrentHost() + '/content/explorer#' + value));
+ fxContainer.append(self.getArtifactAttribute(key + ': ' + value, null, util.getCurrentHost() + '/content/wirings#' + value));
} else {
fxContainer.append(self.getArtifactAttribute(key + ': ' + value));
}
}
});
+ if(spring == false){
+ fxContainer.append(self.getArtifactAttribute('No Spring', 'Spring'));
+ }
+
var dependents = fullArtifact.dependents.sort(function(a, b){
return a.compare(b);
});

Back to the top