diff options
author | Petr VobornÃk <pvoborni@redhat.com> | 2012-01-27 17:20:25 +0100 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2012-02-01 12:47:42 -0600 |
commit | c00267308e2844b2a345c22df5c045117fcff9a2 (patch) | |
tree | 6b3c5f864b23e5cd8750c8545f167012a8c53ecb /install/ui/entity.js | |
parent | b73fc6e550fed9a1b6d83a03fa16f43b361ec8aa (diff) | |
download | freeipa-c00267308e2844b2a345c22df5c045117fcff9a2.tar.gz freeipa-c00267308e2844b2a345c22df5c045117fcff9a2.tar.xz freeipa-c00267308e2844b2a345c22df5c045117fcff9a2.zip |
Navigation and redirection to various facets
In current implementation target facet of navigation(from menu) and redirection is always one exact facet per entity. There isn't a way to navigate to different facet from menu or redirect to different facets from various facets.
This patch adds:
* possibility to define menu items which can navigate to different facets of various entities. This also means that now current menu tree can contain leafs with the same entity.
* possibility to define redirection target per facet - it is needed to keep breadcrumb navigation consistent with various navigation tree patch leading to same entity leafs.
This functionality is needed for Automember UI. Automember UI is designed as if it was for two entities but it is in fact only one.
https://fedorahosted.org/freeipa/ticket/2195
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r-- | install/ui/entity.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/install/ui/entity.js b/install/ui/entity.js index acfc9c440..6b2be9e66 100644 --- a/install/ui/entity.js +++ b/install/ui/entity.js @@ -377,7 +377,7 @@ IPA.entity_builder = function() { that.facet(spec); - add_redirect_info(); + add_redirect_info(spec.name); return that; }; @@ -487,8 +487,9 @@ IPA.entity_builder = function() { } function add_redirect_info(facet_name){ + facet_name = facet_name || 'search'; if (!entity.redirect_facet){ - entity.redirect_facet = 'search'; + entity.redirect_facet = facet_name; } } |