|
@@ -192,6 +192,7 @@ const TestProcess = ({ apiv3Post, slackAppIntegrationId }) => {
|
|
|
setIsLatestConnectionSuccess(true);
|
|
setIsLatestConnectionSuccess(true);
|
|
|
}
|
|
}
|
|
|
catch (error) {
|
|
catch (error) {
|
|
|
|
|
+ setIsLatestConnectionSuccess(false);
|
|
|
setLatestConnectionMessage(error[0]);
|
|
setLatestConnectionMessage(error[0]);
|
|
|
logger.error(error);
|
|
logger.error(error);
|
|
|
}
|
|
}
|
|
@@ -224,15 +225,16 @@ const TestProcess = ({ apiv3Post, slackAppIntegrationId }) => {
|
|
|
</form>
|
|
</form>
|
|
|
</div>
|
|
</div>
|
|
|
{isLatestConnectionSuccess
|
|
{isLatestConnectionSuccess
|
|
|
- ? (
|
|
|
|
|
|
|
+ ? <p className="text-info text-center my-4">{t('admin:slack_integration.accordion.send_message_to_slack_work_space')}</p>
|
|
|
|
|
+ : (
|
|
|
<>
|
|
<>
|
|
|
{latestConnectionMessage == null
|
|
{latestConnectionMessage == null
|
|
|
- ? <p className="text-info text-center my-4">{t('admin:slack_integration.accordion.send_message_to_slack_work_space')}</p>
|
|
|
|
|
|
|
+ ? <p></p>
|
|
|
: <p className="text-danger text-center my-4">{t('admin:slack_integration.accordion.error_check_logs_below')}</p>
|
|
: <p className="text-danger text-center my-4">{t('admin:slack_integration.accordion.error_check_logs_below')}</p>
|
|
|
}
|
|
}
|
|
|
</>
|
|
</>
|
|
|
)
|
|
)
|
|
|
- : <p></p>}
|
|
|
|
|
|
|
+ }
|
|
|
<form>
|
|
<form>
|
|
|
<div className="row my-3 justify-content-center">
|
|
<div className="row my-3 justify-content-center">
|
|
|
<div className="form-group slack-connection-log col-md-4">
|
|
<div className="form-group slack-connection-log col-md-4">
|