|
@@ -76,6 +76,9 @@ const CustomBotWithoutProxySettingsAccordion = ({
|
|
|
setTestChannel(channel);
|
|
setTestChannel(channel);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ let value = '';
|
|
|
|
|
+
|
|
|
|
|
+ // eslint-disable-next-line no-return-assign
|
|
|
return (
|
|
return (
|
|
|
<div className="card border-0 rounded-lg shadow overflow-hidden">
|
|
<div className="card border-0 rounded-lg shadow overflow-hidden">
|
|
|
<Accordion
|
|
<Accordion
|
|
@@ -170,23 +173,11 @@ const CustomBotWithoutProxySettingsAccordion = ({
|
|
|
<div className="row m-3 justify-content-center">
|
|
<div className="row m-3 justify-content-center">
|
|
|
<div className="form-group slack-connection-log w-25">
|
|
<div className="form-group slack-connection-log w-25">
|
|
|
<label><p className="border-info slack-connection-log-title mb-1 pl-2">Logs</p></label>
|
|
<label><p className="border-info slack-connection-log-title mb-1 pl-2">Logs</p></label>
|
|
|
- {connectionErrorMessage == null && connectionSuccessMessage == null && (
|
|
|
|
|
- <textarea className="form-control card border-info slack-connection-log-body rounded-lg pl-3" />
|
|
|
|
|
- )}
|
|
|
|
|
- {connectionErrorMessage != null && (
|
|
|
|
|
- <textarea
|
|
|
|
|
- className="form-control card border-info slack-connection-log-body rounded-lg pl-3"
|
|
|
|
|
- multiple
|
|
|
|
|
- value={[connectionErrorCode, connectionErrorMessage]}
|
|
|
|
|
- />
|
|
|
|
|
- )}
|
|
|
|
|
- {connectionSuccessMessage != null && (
|
|
|
|
|
- <textarea
|
|
|
|
|
- className="form-control card border-info slack-connection-log-body rounded-lg pl-2"
|
|
|
|
|
- multiple
|
|
|
|
|
- value={connectionSuccessMessage}
|
|
|
|
|
- />
|
|
|
|
|
- )}
|
|
|
|
|
|
|
+ {connectionErrorMessage == null && connectionSuccessMessage == null && (value = '')}
|
|
|
|
|
+ {connectionErrorMessage != null && (value = [connectionErrorCode, connectionErrorMessage])}
|
|
|
|
|
+ {connectionSuccessMessage != null && (value = { connectionSuccessMessage })}
|
|
|
|
|
+ <textarea className="form-control card border-info slack-connection-log-body rounded-lg pl-3" value={value} />
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</form>
|
|
</form>
|