From b9f539ba19b40361265c7897a73a1f5757ed0e68 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 19 Nov 2010 16:58:55 -0600 Subject: SUDO Commands and Command Groups The SUDO Commands and Command Groups pages have been added under SUDO Rules tab. Similar to HBAC navigation issue, these entities do not have their own tab, so an exception has been added to the navigation code to read sudo-entity parameter to determine the entity being viewed. Fixing this issue will require framework changes. New test data for these operations have been added. --- install/static/navigation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'install/static/navigation.js') diff --git a/install/static/navigation.js b/install/static/navigation.js index 6b4419c9..e437e569 100644 --- a/install/static/navigation.js +++ b/install/static/navigation.js @@ -137,7 +137,8 @@ function _nav_update_tabs(nls, container) var entity_name = tab.name; // TODO: do not hard-code - if (entity_name == 'hbac' && nav_get_state('entity')) entity_name = nav_get_state('entity'); + if (entity_name == 'hbac' && nav_get_state('hbac-entity')) entity_name = nav_get_state('hbac-entity'); + if (entity_name == 'sudorule' && nav_get_state('sudo-entity')) entity_name = nav_get_state('sudo-entity'); var entity = IPA.get_entity(entity_name); entity.setup(container2); -- cgit