summaryrefslogtreecommitdiffhomepage
path: root/app/components/AdvancedSettings.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/components/AdvancedSettings.js')
-rw-r--r--app/components/AdvancedSettings.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/app/components/AdvancedSettings.js b/app/components/AdvancedSettings.js
index 1821309369..b4306b81c8 100644
--- a/app/components/AdvancedSettings.js
+++ b/app/components/AdvancedSettings.js
@@ -7,16 +7,14 @@ import CustomScrollbars from './CustomScrollbars';
export class AdvancedSettings extends React.Component {
props: {
- host: string,
protocol: string,
- port: string|number,
- onUpdateConstraints: (host: string, protocol: string, port: string|number) => void,
+ port: string | number,
+ onUpdate: (protocol: string, port: string | number) => void,
onClose: () => void,
};
render() {
let portSelector = null;
- const host = this.props.host;
let protocol = this.props.protocol.toUpperCase();
if (protocol === 'AUTOMATIC') {
@@ -32,7 +30,7 @@ export class AdvancedSettings extends React.Component {
values={ ['Automatic', 'UDP', 'TCP'] }
value={ protocol }
onSelect={ protocol => {
- this.props.onUpdateConstraints(host, protocol, 'Automatic');
+ this.props.onUpdate(protocol, 'Automatic');
}}/>
<div className="settings__cell-spacer"></div>
@@ -43,7 +41,6 @@ export class AdvancedSettings extends React.Component {
}
_createPortSelector() {
- const host = this.props.host;
const protocol = this.props.protocol.toUpperCase();
const ports = protocol === 'TCP'
? ['Automatic', 80, 443]
@@ -54,7 +51,7 @@ export class AdvancedSettings extends React.Component {
values={ ports }
value={ this.props.port }
onSelect={ port => {
- this.props.onUpdateConstraints(host, protocol, port);
+ this.props.onUpdate(protocol, port);
}} />;
}
}