[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Freeipa-devel] [PATCH] 149 Fixed self-service UI.



The Identity tab for self-service UI was missing a label and there
was a bug in navigation.js that was exposed because of that.

--
Endi S. Dewata
From e39a173828449aa0f73cddd49e8d3f4d6c26415d Mon Sep 17 00:00:00 2001
From: Endi S. Dewata <edewata redhat com>
Date: Fri, 6 May 2011 15:32:51 -0400
Subject: [PATCH] Fixed self-service UI.

The Identity tab for self-service UI was missing a label and there
was a bug in navigation.js that was exposed because of that.
---
 install/ui/navigation.js |    6 +++---
 install/ui/webui.js      |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/install/ui/navigation.js b/install/ui/navigation.js
index 2fd3e513f6f9f9c4b5a6a272b90786c2dd1246d3..837cef1804166ffa97aefd06e43a9de6f99980bb 100644
--- a/install/ui/navigation.js
+++ b/install/ui/navigation.js
@@ -145,10 +145,10 @@ IPA.navigation = function(spec) {
                     continue;
                 }
                 tab.entity = entity;
-            }
 
-            if (!tab.label) {
-                tab.label = entity.label;
+                if (!tab.label) {
+                    tab.label = entity.label;
+                }
             }
 
             $('<li/>').append($('<a/>', {
diff --git a/install/ui/webui.js b/install/ui/webui.js
index a44b9f0e632056a7bc722b4ced1a30e1b24ece97..ae9a6db847c69c89e82756ca5d9f1fe7bbfbb544 100644
--- a/install/ui/webui.js
+++ b/install/ui/webui.js
@@ -77,7 +77,7 @@ IPA.self_serv_navigation = function(spec) {
     spec = spec || {};
 
     spec.tabs = [
-        {name: 'identity', children: [
+        {name: 'identity', label: IPA.messages.tabs.identity, children: [
             {entity: 'user'},
             {entity: 'group'}
         ]}];
-- 
1.7.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]