Skip to content

Commit

Permalink
Fix #728
Browse files Browse the repository at this point in the history
  • Loading branch information
gashcrumb committed Nov 7, 2013
1 parent fb03135 commit e4cfe9b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 12 additions & 1 deletion hawtio-web/src/main/webapp/app/jmx/js/attributes.ts
Expand Up @@ -252,7 +252,8 @@ module Jmx {
function render(response) {
var data = response.value;
var mbeanIndex = $scope.mbeanIndex;
var mbean = response.request.mbean;
var mbean = response.request['mbean'];
log.debug("mbean: ", mbean);
if (mbean) {
// lets store the mbean in the row for later
data["_id"] = mbean;
Expand Down Expand Up @@ -339,11 +340,21 @@ module Jmx {
}
}
});
if (!properties.any((p) => { return p['key'] === 'ObjectName'; })) {
var objectName = {
key: "ObjectName",
name: "Object Name",
value: mbean
};
generateSummaryAndDetail(objectName);
properties.push(objectName);
}
properties = properties.sortBy("name");
$scope.selectedItems = [data];
data = properties;
}
$scope.gridData = data;
log.debug("gridData: ", $scope.gridData);
Core.$apply($scope);
}
}
Expand Down
2 changes: 2 additions & 0 deletions hawtio-web/src/main/webapp/app/jmx/js/helpers.ts
@@ -1,5 +1,7 @@
module Jmx {

export var log:Logging.Logger = Logger.get("JMX");

var attributesToolBars = {};

export var lazyLoaders = null;
Expand Down

0 comments on commit e4cfe9b

Please sign in to comment.