OLD | NEW |
(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 'user-manager-dialog' is a modal dialog for the user manager. |
| 7 */ |
| 8 Polymer({ |
| 9 is: 'user-manager-dialog', |
| 10 |
| 11 properties: { |
| 12 /** |
| 13 * True if the dialog is currently hidden. |
| 14 * @private {boolean} |
| 15 */ |
| 16 dialogHidden_: { |
| 17 type: Boolean, |
| 18 value: true |
| 19 } |
| 20 }, |
| 21 |
| 22 /** |
| 23 * Opens the dialog. |
| 24 */ |
| 25 open: function() { |
| 26 this.dialogHidden_ = false; |
| 27 |
| 28 this.async(function() { |
| 29 this.$$('paper-icon-button').focus(); |
| 30 }.bind(this)); |
| 31 }, |
| 32 |
| 33 /** |
| 34 * Closes the popup. |
| 35 */ |
| 36 close: function() { |
| 37 this.dialogHidden_ = true; |
| 38 } |
| 39 }); |
OLD | NEW |