Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <link rel="import" href="chrome://resources/cr_elements/cr_profile_avatar_select or/cr_profile_avatar_selector.html"> | 1 <link rel="import" href="chrome://resources/cr_elements/cr_profile_avatar_select or/cr_profile_avatar_selector.html"> |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html"> | |
| 7 <link rel="import" href="/i18n_setup.html"> | |
| 6 <link rel="import" href="/people_page/manage_profile_browser_proxy.html"> | 8 <link rel="import" href="/people_page/manage_profile_browser_proxy.html"> |
| 7 <link rel="import" href="/route.html"> | 9 <link rel="import" href="/route.html"> |
| 8 <link rel="import" href="/settings_shared_css.html"> | 10 <link rel="import" href="/settings_shared_css.html"> |
| 9 | 11 |
| 10 <dom-module id="settings-manage-profile"> | 12 <dom-module id="settings-manage-profile"> |
| 11 <template> | 13 <template> |
| 12 <style include="settings-shared"> | 14 <style include="settings-shared"> |
| 13 #selector { | 15 #selector { |
| 14 margin: 16px 20px; | 16 margin: 16px 20px; |
| 15 } | 17 } |
| 16 </style> | 18 </style> |
| 17 <div class="settings-box first"> | 19 <div class="settings-box first"> |
| 18 <paper-input id="name" value="[[profileName]]" pattern=".*\S.*" | 20 <paper-input id="name" value="[[profileName]]" pattern=".*\S.*" |
| 19 auto-validate required on-change="onProfileNameChanged_" | 21 auto-validate required on-change="onProfileNameChanged_" |
| 20 disabled="[[isProfileNameDisabled_(syncStatus)]]"> | 22 disabled="[[isProfileNameDisabled_(syncStatus)]]"> |
| 21 </paper-input> | 23 </paper-input> |
| 22 </div> | 24 </div> |
| 25 <div class="settings-box first" hidden="[[!isProfileShortcutsEnabled_]]"> | |
|
tommycli
2016/11/15 01:59:50
consider just dom-ifing this out instead of hiding
Moe
2016/11/15 16:03:10
Done.
| |
| 26 <div class="flex">$i18n{showShortcutLabel}</div> | |
| 27 <paper-toggle-button id="hasShortcutToggle" | |
| 28 checked="{{hasProfileShortcut_}}" | |
| 29 on-change="onHasProfileShortcutChange_"> | |
| 30 </paper-toggle-button> | |
| 31 </div> | |
| 23 <cr-profile-avatar-selector id="selector" avatars="[[availableIcons]]" | 32 <cr-profile-avatar-selector id="selector" avatars="[[availableIcons]]" |
| 24 selected-avatar-url="{{profileIconUrl}}" | 33 selected-avatar-url="{{profileIconUrl}}" |
| 25 on-iron-activate="onIconActivate_"> | 34 on-iron-activate="onIconActivate_"> |
| 26 </cr-profile-avatar-selector> | 35 </cr-profile-avatar-selector> |
| 27 </template> | 36 </template> |
| 28 <script src="manage_profile.js"></script> | 37 <script src="manage_profile.js"></script> |
| 29 </dom-module> | 38 </dom-module> |
| OLD | NEW |