diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-04-27 12:17:13 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-06-13 09:23:29 -0400 |
commit | cb70784e6fd864132d8e6f97e2a5c7d179ef5c0b (patch) | |
tree | 52c4fff321ec3d8eba462e6c294aeaf415c44458 /install/ui/entity.js | |
parent | 61cfa343c36383a1a2e12663aec44e9c5692b854 (diff) | |
download | freeipa-cb70784e6fd864132d8e6f97e2a5c7d179ef5c0b.tar.gz freeipa-cb70784e6fd864132d8e6f97e2a5c7d179ef5c0b.tar.xz freeipa-cb70784e6fd864132d8e6f97e2a5c7d179ef5c0b.zip |
Entitlement status.
A new facet has been added to show entitlement status and download
the registration certificate.
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r-- | install/ui/entity.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/install/ui/entity.js b/install/ui/entity.js index deb1bd4bc..de57df544 100644 --- a/install/ui/entity.js +++ b/install/ui/entity.js @@ -402,7 +402,7 @@ IPA.entity = function (spec) { return that; }; -IPA.current_facet = function (entity){ +IPA.current_facet = function(entity) { var facet_name = $.bbq.getState(entity.name+'-facet'); var facets = entity.facets.values; if (!facet_name && facets.length) { @@ -731,6 +731,7 @@ IPA.entity_builder = function(){ that.search_facet = function(spec) { spec.entity_name = entity.name; + spec.title = spec.title || spec.label; spec.label = spec.label || IPA.messages.facets.search; var factory = spec.factory || IPA.search_facet; @@ -758,7 +759,8 @@ IPA.entity_builder = function(){ var sections = spec.sections; spec.sections = null; spec.entity_name = entity.name; - spec.label = IPA.messages.details.settings; + spec.title = spec.title || spec.label || IPA.messages.details.settings; + spec.label = spec.label || IPA.messages.facets.details; var factory = spec.factory || IPA.details_facet; facet = factory(spec); @@ -900,7 +902,7 @@ IPA.entity_builder = function(){ that.dialog = function(spec) { var dialog; - if (spec instanceof Object){ + if (spec instanceof Object) { var factory = spec.factory || IPA.dialog; dialog = factory(spec); } else { |