Show proxy URL on login dialog
This commit is contained in:
@@ -20,15 +20,15 @@ const LoginModal = React.createClass({
|
|||||||
passwordNode.value = '';
|
passwordNode.value = '';
|
||||||
},
|
},
|
||||||
render: function() {
|
render: function() {
|
||||||
var serverType = '';
|
var theServer = '';
|
||||||
if (!this.props.show) {
|
if (!this.props.show) {
|
||||||
serverType = '';
|
theServer = '';
|
||||||
} else if (this.props.authInfo.isProxy) {
|
} else if (this.props.authInfo.isProxy) {
|
||||||
serverType = 'proxy';
|
theServer = `The proxy ${authInfo.host}:${authInfo.port}`;
|
||||||
} else {
|
} else {
|
||||||
serverType = 'server';
|
theServer = `The server ${this.props.authServerURL}`;
|
||||||
}
|
}
|
||||||
const message = `The ${serverType} ${this.props.authServerURL} requires a username and password.`;
|
const message = `${theServer} requires a username and password.`;
|
||||||
return (
|
return (
|
||||||
<Modal show={ this.props.show }>
|
<Modal show={ this.props.show }>
|
||||||
<Modal.Header>
|
<Modal.Header>
|
||||||
|
Reference in New Issue
Block a user