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="/people_page/pin_keyboard.html"> | 4 <link rel="import" href="/people_page/pin_keyboard.html"> |
5 <link rel="import" href="/people_page/quick_unlock_password_detect_behavior.html
"> | 5 <link rel="import" href="/people_page/quick_unlock_password_detect_behavior.html
"> |
6 <link rel="import" href="/people_page/quick_unlock_routing_behavior.html"> | 6 <link rel="import" href="/people_page/quick_unlock_routing_behavior.html"> |
7 <link rel="import" href="/settings_page/settings_section.html"> | 7 <link rel="import" href="/settings_page/settings_section.html"> |
8 <link rel="import" href="/settings_shared_css.html"> | 8 <link rel="import" href="/settings_shared_css.html"> |
9 | 9 |
10 <dom-module id="settings-quick-unlock-setup-pin"> | 10 <dom-module id="settings-quick-unlock-setup-pin"> |
(...skipping 24 matching lines...) Expand all Loading... |
35 justify-content: center; | 35 justify-content: center; |
36 } | 36 } |
37 | 37 |
38 .align-end { | 38 .align-end { |
39 justify-content: flex-end; | 39 justify-content: flex-end; |
40 } | 40 } |
41 </style> | 41 </style> |
42 | 42 |
43 <div> | 43 <div> |
44 <!-- Title; only shown if warning/error is hidden. --> | 44 <!-- Title; only shown if warning/error is hidden. --> |
45 <div class="settings-box" hidden$="[[hasProblem_(problemMessage_)]]"> | 45 <div class="settings-box" hidden$="[[hasProblem_(problemMessage_)]]" |
| 46 id="title-div"> |
46 <span>[[getTitleMessage_(isConfirmStep_)]]</span> | 47 <span>[[getTitleMessage_(isConfirmStep_)]]</span> |
47 </div> | 48 </div> |
48 | 49 |
49 <!-- Warning/error; only shown if title is hidden. --> | 50 <!-- Warning/error; only shown if title is hidden. --> |
50 <div class$="[[problemClass_]] settings-box" | 51 <div class$="[[problemClass_]] settings-box" |
51 hidden$="[[!hasProblem_(problemMessage_)]]"> | 52 hidden$="[[!hasProblem_(problemMessage_)]]" |
| 53 id="problem-div"> |
52 <iron-icon icon="icons:warning"></iron-icon> | 54 <iron-icon icon="icons:warning"></iron-icon> |
53 <span>[[problemMessage_]]</span> | 55 <span>[[problemMessage_]]</span> |
54 </div> | 56 </div> |
55 | 57 |
56 <!-- Pin keyboard --> | 58 <!-- Pin keyboard --> |
57 <div class="align-center settings-box continuation"> | 59 <div class="align-center settings-box continuation"> |
58 <pin-keyboard on-pin-change="onPinChange_" on-submit="onPinSubmit_" | 60 <pin-keyboard on-pin-change="onPinChange_" on-submit="onPinSubmit_" |
59 value="{{pinKeyboardValue_}}"></pin-keyboard> | 61 value="{{pinKeyboardValue_}}"></pin-keyboard> |
60 </div> | 62 </div> |
61 | 63 |
62 <div class="align-end settings-box"> | 64 <div class="align-end settings-box"> |
63 <paper-button class="cancel-button" on-tap="resetState_" | 65 <paper-button class="cancel-button" on-tap="resetState_" |
64 hidden$="[[!isConfirmStep_]]"> | 66 hidden$="[[!isConfirmStep_]]"> |
65 $i18n{quickUnlockConfigurePinBackButton} | 67 $i18n{quickUnlockConfigurePinBackButton} |
66 </paper-button> | 68 </paper-button> |
67 | 69 |
68 <paper-button class="action-button" on-tap="onPinSubmit_" | 70 <paper-button class="action-button" on-tap="onPinSubmit_" |
69 disabled$="[[!enableSubmit_]]"> | 71 disabled$="[[!enableSubmit_]]"> |
70 <span>[[getContinueMessage_(isConfirmStep_)]]</span> | 72 <span>[[getContinueMessage_(isConfirmStep_)]]</span> |
71 </paper-button> | 73 </paper-button> |
72 </div> | 74 </div> |
73 | 75 |
74 </div> | 76 </div> |
75 </template> | 77 </template> |
76 | 78 |
77 <script src="quick_unlock_setup_pin.js"></script> | 79 <script src="quick_unlock_setup_pin.js"></script> |
78 </dom-module> | 80 </dom-module> |
OLD | NEW |