Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Unified Diff: ui/login/account_picker/user_pod_row.js

Issue 1191273002: ChromeOS: Show the new POD RE-AUTH ICON when users needs to re-auth (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/login/account_picker/user_pod_row.js
diff --git a/ui/login/account_picker/user_pod_row.js b/ui/login/account_picker/user_pod_row.js
index d4fd53a524e08184975591c09a676f8f5b18ab97..e3e4be1f0714b27b2e150ef2ceb18eaca21a4399 100644
--- a/ui/login/account_picker/user_pod_row.js
+++ b/ui/login/account_picker/user_pod_row.js
@@ -988,6 +988,14 @@ cr.define('login', function() {
},
/**
+ * Gets the warning triangle element.
+ * @type {!HTMLDivElement}
+ */
+ get reauthWarningElement() {
+ return this.querySelector('.reauth-warning');
+ },
+
+ /**
* Updates the user pod element.
*/
update: function() {
@@ -1000,6 +1008,12 @@ cr.define('login', function() {
if (this.isAuthTypeUserClick)
this.passwordLabelElement.textContent = this.authValue;
+ if (this.isAuthTypeOnlineSignIn) {
+ this.reauthWarningElement.style.display = 'inline-flex';
dzhioev (left Google) 2015/06/22 23:51:25 Why not this.reauthWarningElementHidden = this.isA
+ } else {
+ this.reauthWarningElement.style.display = 'none';
+ }
+
this.updateActionBoxArea();
this.passwordElement.setAttribute('aria-label', loadTimeData.getStringF(

Powered by Google App Engine
This is Rietveld 408576698