OLD | NEW |
| (Empty) |
1 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | |
2 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | |
3 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
matable.html"> | |
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | |
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> | |
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dialog/paper-dial
og.html"> | |
7 <link rel="import" href="chrome://md-settings/sync_page/sync_page.html"> | |
8 <link rel="import" href="chrome://md-settings/sync_page/sync_private_api.html"> | |
9 <link rel="import" href="chrome://md-settings/settings_page/settings_animated_pa
ges.html"> | |
10 <link rel="import" href="chrome://md-settings/settings_page/settings_subheader.h
tml"> | |
11 | |
12 <dom-module id="settings-signin-page"> | |
13 <link rel="import" type="css" | |
14 href="chrome://md-settings/settings_shared.css"> | |
15 <template> | |
16 <settings-animated-pages id="pages" current-route="{{currentRoute}}" | |
17 section="people"> | |
18 <neon-animatable id="main"> | |
19 <div class="settings-box"> | |
20 <div class="split"> | |
21 <span class="start"> | |
22 <!-- TODO(tommycli): Investigate ChromeOS user pictures. | |
23 To be done by January 2015. --> | |
24 <img src="[[syncStatus.iconURL]]"> | |
25 [[syncStatus.name]] | |
26 </span> | |
27 <span> | |
28 <template is="dom-if" if="[[!syncStatus.signedIn]]"> | |
29 <paper-button on-tap="onSigninTap_" raised | |
30 disabled="[[syncStatus.setupInProgress]]"> | |
31 [[i18n('syncSignin')]] | |
32 </paper-button> | |
33 </template> | |
34 <template is="dom-if" if="[[syncStatus.signedIn]]"> | |
35 <paper-button on-tap="onDisconnectTap_" | |
36 disabled="[[syncStatus.setupInProgress]]"> | |
37 [[i18n('syncDisconnect')]] | |
38 </paper-button> | |
39 </template> | |
40 </span> | |
41 </div> | |
42 <div hidden="[[syncStatus.signedIn]]">[[i18n('syncOverview')]]</div> | |
43 </div> | |
44 | |
45 <div class="settings-box split" | |
46 hidden="[[!isStatusTextSet_(syncStatus)]]"> | |
47 <span id="syncStatusText"></span> | |
48 <paper-button on-tap="onActionLinkTap_"> | |
49 [[syncStatus.actionLinkText]] | |
50 </paper-button> | |
51 </div> | |
52 | |
53 <template is="dom-if" | |
54 if="[[isAdvancedSyncSettingsVisible_(syncStatus)]]"> | |
55 <div class="settings-box"> | |
56 <paper-button on-tap="onSyncTap_" raised> | |
57 [[i18n('syncPageTitle')]] | |
58 </paper-button> | |
59 </div> | |
60 </template> | |
61 | |
62 <div class="settings-box"> | |
63 <paper-button i18n-content="manageOtherPeople" | |
64 on-tap="onManageOtherPeople_"> | |
65 </paper-button> | |
66 </div> | |
67 </neon-animatable> | |
68 <neon-animatable id="sync"> | |
69 <settings-subheader i18n-values="page-title:syncPageTitle"> | |
70 </settings-subheader> | |
71 <settings-sync-page current-route="[[currentRoute]]"> | |
72 </settings-sync-page> | |
73 </neon-animatable> | |
74 </settings-animated-pages> | |
75 | |
76 <paper-dialog modal id="disconnectDialog"> | |
77 <h2 i18n-content="syncDisconnectTitle"></h2> | |
78 <div i18n-values=".innerHTML:syncDisconnectExplanation"></div> | |
79 <if expr="(not chromeos and is_posix) or is_win or is_macosx"> | |
80 <paper-checkbox id="deleteProfile" | |
81 i18n-content="syncDisconnectDeleteProfile"> | |
82 </paper-checkbox> | |
83 </if> | |
84 <div class="button-strip"> | |
85 <paper-button dialog-dismiss i18n-content="cancel"> | |
86 </paper-button> | |
87 <paper-button dialog-confirm raised on-tap="onDisconnectConfirm_" | |
88 i18n-content="syncDisconnectConfirm"> | |
89 </paper-button> | |
90 </div> | |
91 </paper-dialog> | |
92 </template> | |
93 <script src="signin_page.js"></script> | |
94 </dom-module> | |
OLD | NEW |