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

Unified Diff: chrome/browser/resources/settings/internet_page/network_summary_item.js

Issue 2820543002: MD Settings: Internet: Enable WiFi on row tap (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/internet_page/network_summary_item.js
diff --git a/chrome/browser/resources/settings/internet_page/network_summary_item.js b/chrome/browser/resources/settings/internet_page/network_summary_item.js
index 23f7b60c729cec1ef40eb86ecc6d6b9e7dfb2f9e..377c807b242aa9f43a06256d2a1a475eb781ac42 100644
--- a/chrome/browser/resources/settings/internet_page/network_summary_item.js
+++ b/chrome/browser/resources/settings/internet_page/network_summary_item.js
@@ -159,12 +159,17 @@ Polymer({
* @private
*/
onShowDetailsTap_: function(event) {
- if (this.shouldShowList_())
+ if (!this.deviceIsEnabled_(this.deviceState)) {
+ this.fire(
+ 'device-enabled-toggled',
+ {enabled: true, type: this.deviceState.Type});
+ } else if (this.shouldShowList_()) {
this.fire('show-networks', this.deviceState);
- else if (this.activeNetworkState.GUID)
+ } else if (this.activeNetworkState.GUID) {
this.fire('show-detail', this.activeNetworkState);
- else if (this.networkStateList.length > 0)
+ } else if (this.networkStateList.length > 0) {
this.fire('show-detail', this.networkStateList[0]);
+ }
event.stopPropagation();
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698