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..ead7468b7758b7a06f409c3a633768e25ba68780 100644 |
| --- a/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js |
| +++ b/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js |
| @@ -127,15 +127,24 @@ Polymer({ |
| }, |
| /** |
| - * Changes the color of the submit button if PIN is ready. |
| + * Changes the color of input text if a something is entered. |
|
jdufault
2016/08/05 21:58:52
What about:
Changes the color of the input text i
sammiequon
2016/08/05 23:34:50
Done.
|
| * @param {string} value |
| * @private |
| */ |
| - getSubmitClass_: function(value) { |
| + getPasswordReadyClass_: function(value) { |
| return value.length > 0 ? 'ready-background' : ''; |
| }, |
| /** |
| + * Disables the submit and backspace button if nothing is entered. |
| + * @param {string} value |
| + * @private |
| + */ |
| + getButtonsDisabled_: function(value) { |
|
jdufault
2016/08/05 21:58:52
Rename to hasInput_
sammiequon
2016/08/05 23:34:50
Done.
|
| + return value.length > 0 ? false : true; |
|
jdufault
2016/08/05 21:58:51
return value.length == 0;
sammiequon
2016/08/05 23:34:50
Done.
|
| + }, |
| + |
| + /** |
| * Computes whether the input type for the pin input should be password or |
| * numerical. |
| * @param {boolean} enablePassword |
| @@ -178,7 +187,7 @@ Polymer({ |
| * @param {boolean} submitEnabled |
| * @private |
| */ |
| - getSubmitHiddenClass_: function(submitEnabled) { |
| + getSubmitClass_: function(submitEnabled) { |
| return submitEnabled ? '' : 'submit-button-hidden'; |
| } |
| }); |