| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 4 <link rel="import" href="/icons.html"> |
| 4 <link rel="import" href="/people_page/pin_keyboard.html"> | 5 <link rel="import" href="/people_page/pin_keyboard.html"> |
| 5 <link rel="import" href="/settings_shared_css.html"> | 6 <link rel="import" href="/settings_shared_css.html"> |
| 6 | 7 |
| 7 <dom-module id="settings-setup-pin-dialog"> | 8 <dom-module id="settings-setup-pin-dialog"> |
| 8 <template> | 9 <template> |
| 9 <style include="settings-shared"></style> | 10 <style include="settings-shared"></style> |
| 10 <style> | 11 <style> |
| 11 .warning { | 12 .warning { |
| 12 color: var(--paper-grey-500); | 13 color: var(--paper-grey-500); |
| 13 } | 14 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 25 } | 26 } |
| 26 | 27 |
| 27 .align-center { | 28 .align-center { |
| 28 justify-content: center; | 29 justify-content: center; |
| 29 } | 30 } |
| 30 </style> | 31 </style> |
| 31 | 32 |
| 32 <dialog is="cr-dialog" id="dialog" on-close="close"> | 33 <dialog is="cr-dialog" id="dialog" on-close="close"> |
| 33 <div class="title">[[getTitleMessage_(isConfirmStep_)]]</div> | 34 <div class="title">[[getTitleMessage_(isConfirmStep_)]]</div> |
| 34 <div class="body"> | 35 <div class="body"> |
| 35 <!-- Warning/error; only shown if title is hidden. --> | 36 <!-- Warning/error; only shown if title is hidden. Id is needed for |
| 36 <div class$="[[problemClass_]] settings-box first" | 37 tests. --> |
| 38 <div id="problemDiv" class$="[[problemClass_]] settings-box first" |
| 37 hidden$="[[!hasProblem_(problemMessage_)]]"> | 39 hidden$="[[!hasProblem_(problemMessage_)]]"> |
| 38 <iron-icon icon="icons:warning"></iron-icon> | 40 <iron-icon icon="settings:warning"></iron-icon> |
| 39 <span class="middle">[[problemMessage_]]</span> | 41 <span class="middle">[[problemMessage_]]</span> |
| 40 </div> | 42 </div> |
| 41 | 43 |
| 42 <!-- Pin keyboard --> | 44 <!-- Pin keyboard --> |
| 43 <div class="align-center settings-box continuation"> | 45 <div class="align-center settings-box continuation"> |
| 44 <pin-keyboard id="pinKeyboard" on-pin-change="onPinChange_" | 46 <pin-keyboard id="pinKeyboard" on-pin-change="onPinChange_" |
| 45 on-submit="onPinSubmit_" value="{{pinKeyboardValue_}}"> | 47 on-submit="onPinSubmit_" value="{{pinKeyboardValue_}}"> |
| 46 </pin-keyboard> | 48 </pin-keyboard> |
| 47 </div> | 49 </div> |
| 48 | 50 |
| 49 <div class="button-strip"> | 51 <div class="button-strip"> |
| 50 <paper-button class="cancel-button" on-tap="onCancelTap_"> | 52 <paper-button class="cancel-button" on-tap="onCancelTap_"> |
| 51 $i18n{cancel} | 53 $i18n{cancel} |
| 52 </paper-button> | 54 </paper-button> |
| 53 | 55 |
| 54 <paper-button class="action-button" on-tap="onPinSubmit_" | 56 <paper-button class="action-button" on-tap="onPinSubmit_" |
| 55 disabled$="[[!enableSubmit_]]"> | 57 disabled$="[[!enableSubmit_]]"> |
| 56 <span>[[getContinueMessage_(isConfirmStep_)]]</span> | 58 <span>[[getContinueMessage_(isConfirmStep_)]]</span> |
| 57 </paper-button> | 59 </paper-button> |
| 58 </div> | 60 </div> |
| 59 </div> | 61 </div> |
| 60 </dialog> | 62 </dialog> |
| 61 </template> | 63 </template> |
| 62 | 64 |
| 63 <script src="setup_pin_dialog.js"></script> | 65 <script src="setup_pin_dialog.js"></script> |
| 64 </dom-module> | 66 </dom-module> |
| OLD | NEW |