|
|
@@ -172,11 +172,13 @@ const CustomBotWithProxySettingsAccordion = () => {
|
|
|
{/* TODO: Responsive */}
|
|
|
<p className="text-center m-4">{t('admin:slack_integration.accordion.test_connection_by_pressing_button')}</p>
|
|
|
<div className="d-flex justify-content-center">
|
|
|
- <form className="form-row align-items-center w-25" onSubmit={e => submitForm(e)}>
|
|
|
- <div className="col-8 input-group-prepend">
|
|
|
- <span className="input-group-text" id="slack-channel-addon"><i className="fa fa-hashtag" /></span>
|
|
|
+ <form className="form-row justify-content-center" onSubmit={e => submitForm(e)}>
|
|
|
+ <div className="input-group col-8">
|
|
|
+ <div className="input-group-prepend">
|
|
|
+ <span className="input-group-text" id="slack-channel-addon"><i className="fa fa-hashtag" /></span>
|
|
|
+ </div>
|
|
|
<input
|
|
|
- className="form-control w-100"
|
|
|
+ className="form-control"
|
|
|
type="text"
|
|
|
value={testChannel}
|
|
|
placeholder="Slack Channel"
|
|
|
@@ -184,14 +186,12 @@ const CustomBotWithProxySettingsAccordion = () => {
|
|
|
onChange={e => inputTestChannelHandler(e.target.value)}
|
|
|
/>
|
|
|
</div>
|
|
|
- <div className="col-4">
|
|
|
- <button
|
|
|
- type="submit"
|
|
|
- className="btn btn-info mx-3 font-weight-bold"
|
|
|
- disabled={testChannel.trim() === ''}
|
|
|
- >Test
|
|
|
- </button>
|
|
|
- </div>
|
|
|
+ <button
|
|
|
+ type="submit"
|
|
|
+ className="btn btn-info mx-3 font-weight-bold"
|
|
|
+ disabled={testChannel.trim() === ''}
|
|
|
+ >Test
|
|
|
+ </button>
|
|
|
</form>
|
|
|
</div>
|
|
|
{connectionErrorMessage != null
|
|
|
@@ -200,10 +200,11 @@ const CustomBotWithProxySettingsAccordion = () => {
|
|
|
&& <p className="text-info text-center my-4">{t('admin:slack_integration.accordion.send_message_to_slack_work_space')}</p>}
|
|
|
<form>
|
|
|
<div className="row my-3 justify-content-center">
|
|
|
- <div className="form-group slack-connection-log w-25">
|
|
|
- <label className="mb-1"><p className="border-info slack-connection-log-title pl-2">Logs</p></label>
|
|
|
+ <div className="form-group slack-connection-log col-md-4">
|
|
|
+ <label className="mb-1"><p className="border-info slack-connection-log-title pl-2 m-0">Logs</p></label>
|
|
|
<textarea
|
|
|
className="form-control card border-info slack-connection-log-body rounded-lg"
|
|
|
+ rows="5"
|
|
|
// TODO: Show test logs
|
|
|
value={value}
|
|
|
readOnly
|