summaryrefslogtreecommitdiffstats
path: root/webapp/components/admin_console/email_connection_test.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/admin_console/email_connection_test.jsx')
-rw-r--r--webapp/components/admin_console/email_connection_test.jsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/webapp/components/admin_console/email_connection_test.jsx b/webapp/components/admin_console/email_connection_test.jsx
index f96d540d6..8e11a0bb4 100644
--- a/webapp/components/admin_console/email_connection_test.jsx
+++ b/webapp/components/admin_console/email_connection_test.jsx
@@ -12,6 +12,7 @@ export default class EmailConnectionTestButton extends React.Component {
static get propTypes() {
return {
config: React.PropTypes.object.isRequired,
+ getConfigFromState: React.PropTypes.func.isRequired,
disabled: React.PropTypes.bool.isRequired
};
}
@@ -37,8 +38,11 @@ export default class EmailConnectionTestButton extends React.Component {
fail: null
});
+ const config = JSON.parse(JSON.stringify(this.props.config));
+ this.props.getConfigFromState(config);
+
Client.testEmail(
- this.props.config,
+ config,
() => {
this.setState({
testing: false,
@@ -120,4 +124,4 @@ export default class EmailConnectionTestButton extends React.Component {
</div>
);
}
-} \ No newline at end of file
+}