From 5fce592b01f4f45f4bda1138468977639943a6b1 Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Wed, 27 Apr 2016 20:47:52 +0900 Subject: [PATCH] Show proxy URL on login dialog --- src/browser/components/loginModal.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/browser/components/loginModal.jsx b/src/browser/components/loginModal.jsx index e61fba1d..45f32fd2 100644 --- a/src/browser/components/loginModal.jsx +++ b/src/browser/components/loginModal.jsx @@ -20,15 +20,15 @@ const LoginModal = React.createClass({ passwordNode.value = ''; }, render: function() { - var serverType = ''; + var theServer = ''; if (!this.props.show) { - serverType = ''; + theServer = ''; } else if (this.props.authInfo.isProxy) { - serverType = 'proxy'; + theServer = `The proxy ${authInfo.host}:${authInfo.port}`; } 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 (