|
@@ -63,11 +63,6 @@ const CustomBotWithoutProxySettingsAccordion = ({
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- const submitForm = (e)=> {
|
|
|
|
|
- e.preventDefault();
|
|
|
|
|
- onTestConnectionHandler();
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
const onTestConnectionHandler = async() => {
|
|
const onTestConnectionHandler = async() => {
|
|
|
setConnectionErrorCode(null);
|
|
setConnectionErrorCode(null);
|
|
|
setConnectionErrorMessage(null);
|
|
setConnectionErrorMessage(null);
|
|
@@ -86,6 +81,11 @@ const CustomBotWithoutProxySettingsAccordion = ({
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ const submitForm = (e) => {
|
|
|
|
|
+ e.preventDefault();
|
|
|
|
|
+ onTestConnectionHandler();
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
const inputTestChannelHandler = (channel) => {
|
|
const inputTestChannelHandler = (channel) => {
|
|
|
setTestChannel(channel);
|
|
setTestChannel(channel);
|
|
|
};
|
|
};
|
|
@@ -164,7 +164,7 @@ const CustomBotWithoutProxySettingsAccordion = ({
|
|
|
>
|
|
>
|
|
|
<p className="text-center m-4">{t('admin:slack_integration.without_proxy.test_connection_by_pressing_button')}</p>
|
|
<p className="text-center m-4">{t('admin:slack_integration.without_proxy.test_connection_by_pressing_button')}</p>
|
|
|
<div className="d-flex justify-content-center">
|
|
<div className="d-flex justify-content-center">
|
|
|
- <form className="form-row align-items-center w-25" onSubmit={ e => { submitForm(e) }}>
|
|
|
|
|
|
|
+ <form className="form-row align-items-center w-25" onSubmit={e => submitForm(e)}>
|
|
|
<div className="col-8 input-group-prepend">
|
|
<div className="col-8 input-group-prepend">
|
|
|
<span className="input-group-text" id="slack-channel-addon"><i className="fa fa-hashtag" /></span>
|
|
<span className="input-group-text" id="slack-channel-addon"><i className="fa fa-hashtag" /></span>
|
|
|
<input
|
|
<input
|