From 5f7cdb8d425956d84b7e783148d4d5eeb6890524 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 15 Dec 2016 14:29:16 +0000 Subject: [PATCH] s/wire_onclick/handleClicks/ and actually pass handleClicks false as appropriate --- src/components/views/directory/NetworkDropdown.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/views/directory/NetworkDropdown.js b/src/components/views/directory/NetworkDropdown.js index 717fc007..0de48bf6 100644 --- a/src/components/views/directory/NetworkDropdown.js +++ b/src/components/views/directory/NetworkDropdown.js @@ -193,13 +193,13 @@ export default class NetworkDropdown extends React.Component { return options; } - _makeMenuOptionFromProtocolInstance(server, protocol, instance, wire_onclick) { - if (wire_onclick === undefined) wire_onclick = true; + _makeMenuOptionFromProtocolInstance(server, protocol, instance, handleClicks) { + if (handleClicks === undefined) handleClicks = true; const name = instance.desc; const icon = ; const key = instance.instance_id; - const click_handler = wire_onclick ? this.onMenuOptionClickProtocolInstance.bind(this, server, instance.instance_id) : null; + const click_handler = handleClicks ? this.onMenuOptionClickProtocolInstance.bind(this, server, instance.instance_id) : null; return
{icon} @@ -207,8 +207,8 @@ export default class NetworkDropdown extends React.Component {
; } - _makeMenuOption(server, network, wire_onclick) { - if (wire_onclick === undefined) wire_onclick = true; + _makeMenuOption(server, network, handleClicks) { + if (handleClicks === undefined) wire_onclick = true; let icon; let name; let span_class; @@ -240,7 +240,7 @@ export default class NetworkDropdown extends React.Component { span_class = 'mx_NetworkDropdown_menu_network'; } - const click_handler = wire_onclick ? this.onMenuOptionClick.bind(this, server, network) : null; + const click_handler = handleClicks ? this.onMenuOptionClick.bind(this, server, network) : null; let key = server; if (network !== null) { @@ -289,7 +289,7 @@ export default class NetworkDropdown extends React.Component { const protocolName = this._protocolNameForInstanceId(this.state.selectedInstanceId); const instance = this.instanceForInstanceId(this.state.selectedInstanceId); current_value = this._makeMenuOptionFromProtocolInstance( - this.state.selectedServer, this.props.protocols[protocolName], instance + this.state.selectedServer, this.props.protocols[protocolName], instance, false ); } else { current_value = this._makeMenuOption(