diff options
Diffstat (limited to 'install/ui/host.js')
-rw-r--r-- | install/ui/host.js | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/install/ui/host.js b/install/ui/host.js index fe082941..857f8543 100644 --- a/install/ui/host.js +++ b/install/ui/host.js @@ -24,11 +24,15 @@ /* REQUIRES: ipa.js, details.js, search.js, add.js, facet.js, entity.js */ -IPA.entity_factories.host = function () { +IPA.host = {}; - return IPA.entity_builder(). - entity('host'). - search_facet({ +IPA.host.entity = function(spec) { + + var that = IPA.entity(spec); + + that.init = function(params) { + + params.builder.search_facet({ columns: [ 'fqdn', 'description', @@ -166,8 +170,10 @@ IPA.entity_factories.host = function () { }). deleter_dialog({ factory: IPA.host_deleter_dialog - }). - build(); + }); + }; + + return that; }; IPA.host_fqdn_section = function(spec) { @@ -779,3 +785,5 @@ IPA.host_certificate_status_widget = function (spec) { return that; }; + +IPA.register('host', IPA.host.entity); |