diff options
Diffstat (limited to 'install/ui/src/freeipa/entity.js')
-rw-r--r-- | install/ui/src/freeipa/entity.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/install/ui/src/freeipa/entity.js b/install/ui/src/freeipa/entity.js index 7dd4f66ab..60dcd912a 100644 --- a/install/ui/src/freeipa/entity.js +++ b/install/ui/src/freeipa/entity.js @@ -64,6 +64,7 @@ exp.entity = IPA.entity = function(spec) { that.facets = $.ordered_map(); that.facet_groups = $.ordered_map(); + that.facet_group_specs = spec.facet_groups; that.facet_specs = spec.facets || []; that.facets_created = false; @@ -230,6 +231,13 @@ exp.entity_builder =IPA.entity_builder = function(entity) { var facet = null; var section = null; + that.default_facet_groups = [ + 'member', + 'settings', + 'memberof', + 'managedby' + ]; + that.facet_group = function(spec) { spec.entity = entity; if (spec instanceof Object) { @@ -442,12 +450,7 @@ exp.entity_builder =IPA.entity_builder = function(entity) { return that.dialog(spec); }; - that.facet_groups([ - 'member', - 'settings', - 'memberof', - 'managedby' - ]); + that.facet_groups(entity.facet_group_specs || that.default_facet_groups); |