mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Underscore for private method
This commit is contained in:
parent
f5bd8abfda
commit
fc597ba86e
1 changed files with 2 additions and 2 deletions
|
@ -253,7 +253,7 @@ export default class NetworkDropdown extends React.Component {
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
protocolNameForInstanceId(instance_id) {
|
_protocolNameForInstanceId(instance_id) {
|
||||||
for (const proto of Object.keys(this.props.protocols)) {
|
for (const proto of Object.keys(this.props.protocols)) {
|
||||||
if (!this.props.protocols[proto].instances) continue;
|
if (!this.props.protocols[proto].instances) continue;
|
||||||
for (const instance of this.props.protocols[proto].instances) {
|
for (const instance of this.props.protocols[proto].instances) {
|
||||||
|
@ -286,7 +286,7 @@ export default class NetworkDropdown extends React.Component {
|
||||||
/>
|
/>
|
||||||
} else {
|
} else {
|
||||||
if (this.state.selectedInstanceId) {
|
if (this.state.selectedInstanceId) {
|
||||||
const protocolName = this.protocolNameForInstanceId(this.state.selectedInstanceId);
|
const protocolName = this._protocolNameForInstanceId(this.state.selectedInstanceId);
|
||||||
const instance = this.instanceForInstanceId(this.state.selectedInstanceId);
|
const instance = this.instanceForInstanceId(this.state.selectedInstanceId);
|
||||||
current_value = this._makeMenuOptionFromProtocolInstance(
|
current_value = this._makeMenuOptionFromProtocolInstance(
|
||||||
this.state.selectedServer, this.props.protocols[protocolName], instance
|
this.state.selectedServer, this.props.protocols[protocolName], instance
|
||||||
|
|
Loading…
Reference in a new issue