Skip to content

Commit

Permalink
hide object properties (i.e. nested objects) by default from the tabl…
Browse files Browse the repository at this point in the history
…e views in hawtSpot
  • Loading branch information
jstrachan committed Apr 2, 2013
1 parent 33227c8 commit 5280163
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions hawtio-web/src/main/webapp/app/wiki/js/formTable.ts
Expand Up @@ -66,12 +66,16 @@ module Wiki {
var columnDefs = [];
angular.forEach($scope.formDefinition.properties, (property, name) => {
if (name) {
var colDef = {
field: name,
displayName: property.description || name,
visible: true
};
columnDefs.push(colDef);
var propType = property["type"];
// we may want to hide properties which have no property type as they could be objects?
if (!propType || propType !== "object") {
var colDef = {
field: name,
displayName: property.description || name,
visible: true
};
columnDefs.push(colDef);
}
}
});
columnDefs.push(linksColumn);
Expand Down

0 comments on commit 5280163

Please sign in to comment.