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

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

Issue 2957943003: MD User manager: Migrate from PaperDialogBehavior to cr-dialog. (Closed)
Patch Set: Restore color. Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 'error-dialog' is a dialog that displays error messages 6 * @fileoverview 'error-dialog' is a dialog that displays error messages
7 * in the user manager. 7 * in the user manager.
8 */ 8 */
9 (function() { 9 (function() {
10 Polymer({ 10 Polymer({
11 is: 'error-dialog', 11 is: 'error-dialog',
12 12
13 properties: { 13 properties: {
14 /** 14 /**
15 * The message shown in the dialog. 15 * The message shown in the dialog.
16 * @private {string} 16 * @private {string}
17 */ 17 */
18 message_: {type: String, value: ''} 18 message_: {type: String, value: ''}
19 }, 19 },
20 20
21 /** 21 /**
22 * Displays the dialog populated with the given message. 22 * Displays the dialog populated with the given message.
23 * @param {string} message Error message to show. 23 * @param {string} message Error message to show.
24 */ 24 */
25 show: function(message) { 25 show: function(message) {
26 this.message_ = message; 26 this.message_ = message;
27 this.$.dialog.open(); 27 this.$.dialog.showModal();
28 } 28 }
29 }); 29 });
30 })(); 30 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698