Commit 1a301a4e authored by Steven Bennetts's avatar Steven Bennetts Committed by Commit Bot

Settings: Internet: Fix 'type' params in events

Bug: 831004
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I55a1de65656bb646b9954dfafa5199dc3667867e
Reviewed-on: https://chromium-review.googlesource.com/1010913Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Steven Bennetts <stevenjb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550503}
parent 36603cc6
......@@ -315,7 +315,7 @@ Polymer({
* @private
*/
onShowNetworks_: function(event) {
this.showNetworksSubpage_(event.detail.Type);
this.showNetworksSubpage_(event.detail.type);
},
/**
......@@ -361,9 +361,9 @@ Polymer({
* @private
*/
onShowKnownNetworks_: function(event) {
this.detailType_ = event.detail.Type;
this.detailType_ = event.detail.type;
const params = new URLSearchParams;
params.append('type', event.detail.Type);
params.append('type', event.detail.type);
this.knownNetworksType_ = event.detail.type;
settings.navigateTo(settings.routes.KNOWN_NETWORKS, params);
},
......
......@@ -447,7 +447,7 @@ Polymer({
*/
onKnownNetworksTap_: function() {
assert(this.deviceState.Type == CrOnc.Type.WI_FI);
this.fire('show-known-networks', {Type: this.deviceState.Type});
this.fire('show-known-networks', {type: this.deviceState.Type});
},
/**
......
......@@ -294,7 +294,7 @@ Polymer({
}
} else if (this.shouldShowSubpage_(
this.deviceState, this.networkStateList)) {
this.fire('show-networks', this.deviceState);
this.fire('show-networks', {type: this.deviceState.Type});
} else if (this.activeNetworkState.GUID) {
this.fire('show-detail', this.activeNetworkState);
} else if (this.networkStateList.length > 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment