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

Side by Side Diff: chrome/browser/resources/md_user_manager/error_dialog.js

Issue 2025433002: MD User Manager: Display error message when all profiles are locked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * @fileoverview 'error-dialog' is a popup dialog that displays error messages
7 * in the user manager.
8 */
9 (function() {
10 Polymer({
11 is: 'error-dialog',
12
13 properties: {
14 /**
15 * True if the element is currently hidden.
16 * @private {boolean}
17 */
18 popupHidden_: {
19 type: Boolean,
20 value: true
21 },
22
23 /**
24 * The message shown in the dialog.
25 * @private {string}
26 */
27 message_: {
28 type: String,
29 value: ''
30 }
31 },
32
33 /**
34 * Displays the popup populated with the given message.
35 * @param {string} message Error message to show.
36 */
37 show: function(message) {
38 this.message_ = message;
39 this.popupHidden_ = false;
40
41 this.async(function() {
42 this.$$('paper-icon-button').focus();
43 }.bind(this));
44 },
45
46 /**
47 * Hides the popup.
48 * @private
49 */
50 onCloseTap_: function() {
51 this.popupHidden_ = true;
52 }
53 });
54 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698