diff options
author | Endi S. Dewata <edewata@redhat.com> | 2010-12-07 12:17:12 -0600 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-12-07 17:54:04 -0500 |
commit | deb94b150dc48d3af2a461e7d325f7c68cceefef (patch) | |
tree | c63fbb43db12a3c3b0de65e482af17ef17622bc6 /install/static/webui.js | |
parent | 9e5fdcb3a4af41282e72d314b65341d9aa209e23 (diff) | |
download | freeipa-deb94b150dc48d3af2a461e7d325f7c68cceefef.tar.gz freeipa-deb94b150dc48d3af2a461e7d325f7c68cceefef.tar.xz freeipa-deb94b150dc48d3af2a461e7d325f7c68cceefef.zip |
Navigation updates
The entity.default_facet has been removed, instead the first facet
registered to the entity will be considered as the default facet.
So, the 'setup' parameter has been removed from tab definitions
because it's no longer necessary. The ipa_details_only_setup() has
been removed as well.
An 'entity' parameter has been added to tab definitions to specify
which entity corresponds to a tab item. The tab label has been
changed to use entity label if available.
Some hard-coded labels have been removed. The unit tests have been
updated.
Diffstat (limited to 'install/static/webui.js')
-rw-r--r-- | install/static/webui.js | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/install/static/webui.js b/install/static/webui.js index 26f600981..1c917d57d 100644 --- a/install/static/webui.js +++ b/install/static/webui.js @@ -25,36 +25,36 @@ var admin_tab_set = [ {name:'identity', children:[ - {name:'user', label:'Users', setup: ipa_entity_setup}, - {name:'group', label:'Groups', setup: ipa_entity_setup}, - {name:'host', label:'Hosts', setup: ipa_entity_setup}, - {name:'hostgroup', label:'Hostgroups', setup: ipa_entity_setup}, - {name:'netgroup', label:'Netgroups', setup: ipa_entity_setup}, - {name:'service', label:'Services', setup: ipa_entity_setup} + {name:'user', entity:'user'}, + {name:'group', entity:'group'}, + {name:'host', entity:'host'}, + {name:'hostgroup', entity:'hostgroup'}, + {name:'netgroup', entity:'netgroup'}, + {name:'service', entity:'service'} ]}, {name:'policy', children:[ - {name:'dnszone', setup: ipa_entity_setup}, - {name:'hbac', setup: ipa_entity_setup, children:[ - {name:'hbacsvc', setup: ipa_entity_setup}, - {name:'hbacsvcgroup', setup: ipa_entity_setup} + {name:'dnszone', entity:'dnszone'}, + {name:'hbac', entity:'hbac', children:[ + {name:'hbacsvc', entity:'hbacsvc'}, + {name:'hbacsvcgroup', entity:'hbacsvcgroup'} ]}, - {name:'sudorule', label:'SUDO', setup: ipa_entity_setup,children:[ - {name:'sudocmd', setup: ipa_entity_setup}, - {name:'sudocmdgroup', setup: ipa_entity_setup} + {name:'sudorule', entity:'sudorule',children:[ + {name:'sudocmd', entity:'sudocmd'}, + {name:'sudocmdgroup', entity:'sudocmdgroup'} ]}, - {name:'automountlocation', setup: ipa_entity_setup}, - {name:'pwpolicy', setup: ipa_entity_setup}, - {name:'krbtpolicy', setup:ipa_details_only_setup} + {name:'automountlocation', entity:'automountlocation'}, + {name:'pwpolicy', entity:'pwpolicy'}, + {name:'krbtpolicy', entity:'krbtpolicy'} ]}, {name:'ipaserver', children: [ - {name:'config', setup: ipa_details_only_setup} + {name:'config', entity:'config'} ]} ]; var self_serv_tab_set = [ - { name:'identity', label:'IDENTITY', children: [ - {name:'user', label:'Users', setup:ipa_entity_setup}]}]; + { name:'identity', children: [ + {name:'user', entity:'user'}]}]; IPA.tab_state = function(entity_name){ |