mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Underscore for private method
This commit is contained in:
parent
f5bd8abfda
commit
fc597ba86e
@ -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 New Issue
Block a user