Mercurial > bugzilla-dashboard
comparison js/modules/app.js @ 56:4728c2db6fd6
changed 'Log In' to 'Authenticate' if user is logged in but unauthenticated.
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Sun, 25 Apr 2010 00:06:17 -0700 |
parents | cd51aebfbf68 |
children | f9001601bed6 |
comparison
equal
deleted
inserted
replaced
55:cd51aebfbf68 | 56:4728c2db6fd6 |
---|---|
68 function changeUI(user) { | 68 function changeUI(user) { |
69 var show = { | 69 var show = { |
70 "no-login": false, | 70 "no-login": false, |
71 "login": false, | 71 "login": false, |
72 "auth-login": false, | 72 "auth-login": false, |
73 "no-auth": false | 73 "no-auth": false, |
74 "no-auth-login": false | |
74 }; | 75 }; |
75 | 76 |
76 if (user.isLoggedIn) { | 77 if (user.isLoggedIn) { |
77 show["login"] = true; | 78 show["login"] = true; |
78 if (user.isAuthenticated) | 79 if (user.isAuthenticated) |
79 show["auth-login"] = true; | 80 show["auth-login"] = true; |
80 else | 81 else { |
81 show["no-auth"] = true; | 82 show["no-auth"] = true; |
83 show["no-auth-login"] = true; | |
84 } | |
82 } else { | 85 } else { |
83 show["no-login"] = true; | 86 show["no-login"] = true; |
84 show["no-auth"] = true; | 87 show["no-auth"] = true; |
85 } | 88 } |
86 | 89 |