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

Unified Diff: chrome/browser/resources/md_user_manager/create_profile.js

Issue 2124593002: MD User Manager: Hides 'import supervised user' link while loading supervised users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « chrome/browser/resources/md_user_manager/create_profile.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_user_manager/create_profile.js
diff --git a/chrome/browser/resources/md_user_manager/create_profile.js b/chrome/browser/resources/md_user_manager/create_profile.js
index 0ea54959d0211cb99b3787b4b3b5119723669d97..6b2ea4107a23c5a37fc4e789f86ff38255e6eaa0 100644
--- a/chrome/browser/resources/md_user_manager/create_profile.js
+++ b/chrome/browser/resources/md_user_manager/create_profile.js
@@ -484,14 +484,19 @@ Polymer({
},
/**
- * Returns True if the import supervised user link should be hidden.
- * @param {boolean} createInProgress True if create/import is in progress
+ * Returns True if the import existing supervised user link should be hidden.
+ * @param {boolean} createInProgress True if create/import is in progress.
+ * @param {boolean} loadingSupervisedUsers True if supervised users are being
+ * loaded.
* @param {number} signedInUserIndex Index of the selected signed-in user.
* @return {boolean}
* @private
*/
- isImportUserLinkHidden_: function(createInProgress, signedInUserIndex) {
- return createInProgress || !this.signedInUser_(signedInUserIndex);
+ isImportUserLinkHidden_: function(createInProgress,
+ loadingSupervisedUsers,
+ signedInUserIndex) {
+ return createInProgress || loadingSupervisedUsers ||
+ !this.signedInUser_(signedInUserIndex);
},
/**
« no previous file with comments | « chrome/browser/resources/md_user_manager/create_profile.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698