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="/people_page/manage_profile_browser_proxy.html"> | 6 <link rel="import" href="/people_page/manage_profile_browser_proxy.html"> |
7 <link rel="import" href="/settings_shared_css.html"> | 7 <link rel="import" href="/settings_shared_css.html"> |
8 | 8 |
9 <dom-module id="settings-manage-profile"> | 9 <dom-module id="settings-manage-profile"> |
10 <template> | 10 <template> |
11 <style include="settings-shared"> | 11 <style include="settings-shared"> |
12 #selector { | 12 #selector { |
13 margin: 16px 20px; | 13 margin: 16px 20px; |
14 } | 14 } |
15 </style> | 15 </style> |
16 <div class="settings-box first"> | 16 <div class="settings-box first"> |
17 <paper-input id="name" value="{{profileName}}" pattern=".*\S.*" | 17 <paper-input id="name" value="{{profileName}}" pattern=".*\S.*" |
18 auto-validate required on-change="onProfileNameChanged_"> | 18 auto-validate required on-change="onProfileNameChanged_" |
| 19 disabled="[[isProfileNameDisabled_(syncStatus)]]"> |
19 </paper-input> | 20 </paper-input> |
20 </div> | 21 </div> |
21 <cr-profile-avatar-selector id="selector" avatars="[[availableIcons]]" | 22 <cr-profile-avatar-selector id="selector" avatars="[[availableIcons]]" |
22 selected-avatar-url="{{profileIconUrl}}" | 23 selected-avatar-url="{{profileIconUrl}}" |
23 on-iron-activate="onIconActivate_"> | 24 on-iron-activate="onIconActivate_"> |
24 </cr-profile-avatar-selector> | 25 </cr-profile-avatar-selector> |
25 </template> | 26 </template> |
26 <script src="manage_profile.js"></script> | 27 <script src="manage_profile.js"></script> |
27 </dom-module> | 28 </dom-module> |
OLD | NEW |