OLD | NEW |
---|---|
(Empty) | |
1 <link rel="import" href="chrome://resources/html/polymer.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"> | |
4 <link rel="import" href="/people_page/pin_keyboard.html"> | |
5 <link rel="import" href="/settings_shared_css.html"> | |
6 | |
7 <dom-module id="settings-setup-pin-dialog"> | |
tommycli
2016/08/05 17:46:19
Is there any new stuff in here I should pay extra
jdufault
2016/08/05 20:59:52
Yea, not too many changes in this file.
| |
8 <template> | |
9 <style include="settings-shared"></style> | |
10 <style> | |
11 iron-icon { | |
12 -webkit-margin-end: var(--iron-icon-spacing); | |
13 } | |
14 | |
15 .warning { | |
16 color: var(--paper-grey-500); | |
17 } | |
18 | |
19 .warning > iron-icon { | |
20 --iron-icon-fill-color: var(--paper-grey-500); | |
tommycli
2016/08/05 17:46:19
Can this be consolidated into .warning? I think I
jdufault
2016/08/05 20:59:52
Iirc I investigated last time and the answer was n
| |
21 } | |
22 | |
23 .error { | |
24 color: var(--paper-red-500); | |
25 } | |
26 | |
27 .error > iron-icon { | |
28 --iron-icon-fill-color: var(--paper-red-500); | |
29 } | |
30 | |
31 .align-center { | |
32 justify-content: center; | |
33 } | |
34 | |
35 .align-end { | |
36 justify-content: flex-end; | |
37 } | |
38 </style> | |
39 | |
40 <dialog is="cr-dialog" id="dialog" on-close="close"> | |
41 <div class="title">[[getTitleMessage_(isConfirmStep_)]]</div> | |
42 <div class="body"> | |
43 <!-- Warning/error; only shown if title is hidden. --> | |
44 <div class$="[[problemClass_]] settings-box first" | |
45 hidden$="[[!hasProblem_(problemMessage_)]]"> | |
46 <iron-icon icon="icons:warning"></iron-icon> | |
47 <span>[[problemMessage_]]</span> | |
48 </div> | |
49 | |
50 <!-- Pin keyboard --> | |
51 <div class="align-center settings-box continuation"> | |
52 <pin-keyboard id="pinKeyboard" on-pin-change="onPinChange_" | |
53 on-submit="onPinSubmit_" value="{{pinKeyboardValue_}}"> | |
54 </pin-keyboard> | |
55 </div> | |
56 | |
57 <div class="align-end settings-box continuation"> | |
58 <paper-button class="cancel-button" on-tap="onCancelTap_"> | |
59 $i18n{cancel} | |
60 </paper-button> | |
61 | |
62 <paper-button class="action-button" on-tap="onPinSubmit_" | |
63 disabled$="[[!enableSubmit_]]"> | |
64 <span>[[getContinueMessage_(isConfirmStep_)]]</span> | |
65 </paper-button> | |
66 </div> | |
67 </div> | |
68 </dialog> | |
69 </template> | |
70 | |
71 <script src="setup_pin_dialog.js"></script> | |
72 </dom-module> | |
OLD | NEW |