Chromium Code Reviews| Index: chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js |
| diff --git a/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js b/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js |
| index 9b9ba5dad8b5dc2ba8c528ddea38566061751d5e..4bc2ea12851a5089d706a4c5de787754497a4cc1 100644 |
| --- a/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js |
| +++ b/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js |
| @@ -47,6 +47,14 @@ Polymer({ |
| value: false |
| }, |
| + /** |
| + * Whether or not the keyboard's input has anything entered. |
| + */ |
| + hasContent: { |
|
jdufault
2016/08/26 01:24:12
It doesn't look like this property ever gets updat
sammiequon
2016/08/26 19:56:38
Done.
|
| + type: Boolean, |
| + value: false |
| + }, |
| + |
| /** The value stored in the keyboard's input element. */ |
| value: { |
| type: String, |
| @@ -127,12 +135,12 @@ Polymer({ |
| }, |
| /** |
| - * Changes the color of the submit button if PIN is ready. |
| + * Disables the submit and backspace button if nothing is entered. |
| * @param {string} value |
| * @private |
| */ |
| - getSubmitClass_: function(value) { |
| - return value.length > 0 ? 'ready-background' : ''; |
| + hasInput_: function(value) { |
| + return value.length > 0; |
| }, |
| /** |
| @@ -178,7 +186,7 @@ Polymer({ |
| * @param {boolean} submitEnabled |
| * @private |
| */ |
| - getSubmitHiddenClass_: function(submitEnabled) { |
| + getSubmitClass_: function(submitEnabled) { |
| return submitEnabled ? '' : 'submit-button-hidden'; |
| } |
| }); |