diff --git a/client/actions.js b/client/actions.js index 2d34bf4b..582e8b4c 100644 --- a/client/actions.js +++ b/client/actions.js @@ -61,6 +61,9 @@ const actions = { dispatch({ type: 'updateConnectStatus', data: 'Redis connecting...' }); if (config.ssl) { config.tls = { + ca: config.ca, + key: config.key, + cert: config.cert } } const redis = new Redis(_.assign({}, config, override, { diff --git a/client/components/main/Main/ConnectionSelector/Config.jsx b/client/components/main/Main/ConnectionSelector/Config.jsx index f1c62042..61ce2ab0 100644 --- a/client/components/main/Main/ConnectionSelector/Config.jsx +++ b/client/components/main/Main/ConnectionSelector/Config.jsx @@ -35,12 +35,12 @@ class Config extends React.Component { if (!this.props.connect && nextProps.connect) { this.connect(); } - const leaving = - (!this.props.favorite && nextProps.favorite) || - (this.props.favorite && !nextProps.favorite) || - (this.props.favorite.get('key') !== nextProps.favorite.get('key')); - if (leaving) { - this.setState({ changed: false, data: new Immutable.Map() }); + if (this.props.favorite || nextProps.favorite) { + const leaving = !this.props.favorite || !nextProps.favorite || + (this.props.favorite.get('key') !== nextProps.favorite.get('key')); + if (leaving) { + this.setState({ changed: false, data: new Immutable.Map() }); + } } } @@ -81,6 +81,33 @@ class Config extends React.Component { } } + renderCertInput(label, id) { + return