Skip to content

Commit

Permalink
show detail for attributes of an array value in a nicer way for #506
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Sep 3, 2013
1 parent af29fa0 commit 4446bdd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hawtio-web/src/main/webapp/app/jmx/js/attributes.ts
Expand Up @@ -318,6 +318,15 @@ module Jmx {
var text = value;
data.summary = "" + text + "";
data.detailHtml = "<pre>" + text + "</pre>";
if (angular.isArray(value)) {
var html = "<ul>";
angular.forEach(value, (item) => {
html += "<li>" + item + "</li>";
});
html += "</ul>";
data.detailHtml = html;
}

}
}

Expand Down

0 comments on commit 4446bdd

Please sign in to comment.