itizawa 4 лет назад
Родитель
Сommit
660ef2a2c7
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/client/js/components/Admin/SlackIntegration/WithProxyAccordions.jsx

+ 4 - 4
src/client/js/components/Admin/SlackIntegration/WithProxyAccordions.jsx

@@ -208,11 +208,12 @@ const TestProcess = ({ appContainer, slackAppIntegrationId }) => {
     setConnectionSuccessMessage(null);
     setConnectionSuccessMessage(null);
 
 
     try {
     try {
-      const response = await appContainer.apiv3.post('/slack-integration-settings/with-proxy/relation-test', { slackAppIntegrationId, channel: testChannel });
-      console.log(response);
+      await appContainer.apiv3.post('/slack-integration-settings/with-proxy/relation-test', { slackAppIntegrationId, channel: testChannel });
+      setConnectionSuccessMessage('Success to relation test!');
     }
     }
     catch (error) {
     catch (error) {
-      toastError(error);
+      setConnectionErrorCode(error[0].code);
+      setConnectionErrorMessage(error[0].message);
       logger.error(error);
       logger.error(error);
     }
     }
   };
   };
@@ -254,7 +255,6 @@ const TestProcess = ({ appContainer, slackAppIntegrationId }) => {
             <textarea
             <textarea
               className="form-control card border-info slack-connection-log-body rounded-lg"
               className="form-control card border-info slack-connection-log-body rounded-lg"
               rows="5"
               rows="5"
-            // TODO: Show test logs
               value={value}
               value={value}
               readOnly
               readOnly
             />
             />