Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1504)

Side by Side Diff: chrome/browser/resources/settings/internet_page/internet_page.html

Issue 2729693002: MD Settings: Internet: Hide add connection UI when WiFi is disabled (Closed)
Patch Set: Closure Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/settings/internet_page/internet_page.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/cr_elements/cr_expand_button/cr_expa nd_button.html"> 1 <link rel="import" href="chrome://resources/cr_elements/cr_expand_button/cr_expa nd_button.html">
2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> 2 <link rel="import" href="chrome://resources/cr_elements/icons.html">
3 <link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.htm l"> 3 <link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.htm l">
4 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> 4 <link rel="import" href="chrome://resources/html/i18n_behavior.html">
5 <link rel="import" href="chrome://resources/html/polymer.html"> 5 <link rel="import" href="chrome://resources/html/polymer.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l">
7 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable.html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable.html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html">
9 <link rel="import" href="../prefs/prefs.html"> 9 <link rel="import" href="../prefs/prefs.html">
10 <link rel="import" href="../route.html"> 10 <link rel="import" href="../route.html">
(...skipping 30 matching lines...) Expand all
41 on-tap="onExpandAddConnectionsTap_"> 41 on-tap="onExpandAddConnectionsTap_">
42 <div class="start layout horizontal center"> 42 <div class="start layout horizontal center">
43 <iron-icon icon="cr:add"></iron-icon> 43 <iron-icon icon="cr:add"></iron-icon>
44 <div>$i18n{internetAddConnection}</div> 44 <div>$i18n{internetAddConnection}</div>
45 </div> 45 </div>
46 <cr-expand-button alt="$i18n{internetAddConnectionExpandA11yLabel}" 46 <cr-expand-button alt="$i18n{internetAddConnectionExpandA11yLabel}"
47 id="expandAddConnections" expanded="{{addConnectionExpanded_}}"> 47 id="expandAddConnections" expanded="{{addConnectionExpanded_}}">
48 </cr-expand-button> 48 </cr-expand-button>
49 </div> 49 </div>
50 <template is="dom-if" if="[[addConnectionExpanded_]]"> 50 <template is="dom-if" if="[[addConnectionExpanded_]]">
51 <div actionable class="settings-box continuation center" 51 <template is="dom-if" if="[[deviceIsEnabled_(deviceStates.WiFi)]]">
52 on-tap="onAddWiFiTap_"> 52 <div actionable class="settings-box continuation center"
53 <div class="start add-no-icon">$i18n{internetAddWiFi}</div> 53 on-tap="onAddWiFiTap_">
54 <button class="icon-external" is="paper-icon-button-light" 54 <div class="start add-no-icon">$i18n{internetAddWiFi}</div>
55 aria-label="$i18n{internetAddWiFi}"> 55 <button class="icon-external" is="paper-icon-button-light"
56 </button> 56 aria-label="$i18n{internetAddWiFi}">
57 </div> 57 </button>
58 </div>
59 </template>
58 <div actionable class="settings-box continuation center" 60 <div actionable class="settings-box continuation center"
59 on-tap="onAddVPNTap_"> 61 on-tap="onAddVPNTap_">
60 <div class="start add-no-icon">$i18n{internetAddVPN}</div> 62 <div class="start add-no-icon">$i18n{internetAddVPN}</div>
61 <button class="icon-external" is="paper-icon-button-light" 63 <button class="icon-external" is="paper-icon-button-light"
62 aria-label="$i18n{internetAddVPN}"> 64 aria-label="$i18n{internetAddVPN}">
63 </button> 65 </button>
64 </div> 66 </div>
65 <template is="dom-repeat" items="[[thirdPartyVpnProviders_]]"> 67 <template is="dom-repeat" items="[[thirdPartyVpnProviders_]]">
66 <div actionable class="settings-box continuation center" 68 <div actionable class="settings-box continuation center"
67 on-tap="onAddThirdPartyVpnTap_" provider="[[item]]"> 69 on-tap="onAddThirdPartyVpnTap_" provider="[[item]]">
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 networking-private="[[networkingPrivate]]" 112 networking-private="[[networkingPrivate]]"
111 show-spinner="{{showSpinner_}}"> 113 show-spinner="{{showSpinner_}}">
112 </settings-bluetooth-subpage> 114 </settings-bluetooth-subpage>
113 </settings-subpage> 115 </settings-subpage>
114 </template> 116 </template>
115 117
116 </settings-animated-pages> 118 </settings-animated-pages>
117 </template> 119 </template>
118 <script src="internet_page.js"></script> 120 <script src="internet_page.js"></script>
119 </dom-module> 121 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/internet_page/internet_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698