summaryrefslogtreecommitdiffstats
path: root/install/ui/host.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/host.js')
-rw-r--r--install/ui/host.js32
1 files changed, 19 insertions, 13 deletions
diff --git a/install/ui/host.js b/install/ui/host.js
index 7f56aeee4..1f0a76dd5 100644
--- a/install/ui/host.js
+++ b/install/ui/host.js
@@ -32,16 +32,6 @@ IPA.entity_factories.host = function () {
that.init = function() {
- that.create_association({
- 'name': 'hostgroup',
- 'associator': 'serial'
- });
-
- that.create_association({
- 'name': 'rolegroup',
- 'associator': 'serial'
- });
-
var facet = IPA.host_search_facet({
'name': 'search',
'label': 'Search'
@@ -60,9 +50,25 @@ IPA.entity_factories.host = function () {
that.add_facet(facet);
facet = IPA.host_managedby_host_facet({
- 'name': 'managedby_host',
- 'label': IPA.messages.association.managedby+' '+IPA.metadata['host'].label,
- 'other_entity': 'host'
+ 'name': 'managedby_host'
+ });
+ that.add_facet(facet);
+
+ facet = IPA.association_facet({
+ name: 'memberof_hostgroup',
+ associator: IPA.serial_associator
+ });
+ that.add_facet(facet);
+
+ facet = IPA.association_facet({
+ name: 'memberof_netgroup',
+ associator: IPA.serial_associator
+ });
+ that.add_facet(facet);
+
+ facet = IPA.association_facet({
+ name: 'memberof_role',
+ associator: IPA.serial_associator
});
that.add_facet(facet);