| OLD | NEW |
| 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 Polymer element for displaying AD domain joining and AD | 6 * @fileoverview Polymer element for displaying AD domain joining and AD |
| 7 * Authenticate user screens. | 7 * Authenticate user screens. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 Polymer({ | 10 Polymer({ |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 userRealm: String, | 39 userRealm: String, |
| 40 /** | 40 /** |
| 41 * Welcome message on top of the UI. | 41 * Welcome message on top of the UI. |
| 42 */ | 42 */ |
| 43 adWelcomeMessage: String | 43 adWelcomeMessage: String |
| 44 }, | 44 }, |
| 45 | 45 |
| 46 /** @private */ | 46 /** @private */ |
| 47 realmChanged_: function() { | 47 realmChanged_: function() { |
| 48 this.adWelcomeMessage = | 48 this.adWelcomeMessage = |
| 49 loadTimeData.getStringF('AdAuthWelcomeMessage', this.realm); | 49 loadTimeData.getStringF('adAuthWelcomeMessage', this.realm); |
| 50 }, | 50 }, |
| 51 | 51 |
| 52 /** @private */ | 52 /** @private */ |
| 53 disabledChanged_: function() { | 53 disabledChanged_: function() { |
| 54 this.$.gaiaCard.classList.toggle('disabled', this.disabled); | 54 this.$.gaiaCard.classList.toggle('disabled', this.disabled); |
| 55 }, | 55 }, |
| 56 | 56 |
| 57 focus: function() { | 57 focus: function() { |
| 58 if (this.showMachineInput && /** @type {string} */ ( | 58 if (this.showMachineInput && /** @type {string} */ ( |
| 59 this.$.machineNameInput.value) == '') { | 59 this.$.machineNameInput.value) == '') { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 88 user += this.userRealm; | 88 user += this.userRealm; |
| 89 var msg = { | 89 var msg = { |
| 90 'machinename': this.$.machineNameInput.value, | 90 'machinename': this.$.machineNameInput.value, |
| 91 'username': user, | 91 'username': user, |
| 92 'password': this.$.passwordInput.value | 92 'password': this.$.passwordInput.value |
| 93 }; | 93 }; |
| 94 this.$.passwordInput.value = ''; | 94 this.$.passwordInput.value = ''; |
| 95 this.fire('authCompleted', msg); | 95 this.fire('authCompleted', msg); |
| 96 }, | 96 }, |
| 97 }); | 97 }); |
| OLD | NEW |