zahmis 4 лет назад
Родитель
Сommit
8ae8334449

+ 1 - 1
src/client/js/components/Admin/SlackIntegration/CustomBotWithoutProxySettings.jsx

@@ -76,7 +76,7 @@ const CustomBotWithoutProxySettings = (props) => {
           connectionMessage={connectionMessage}
           connectionErrorCode={connectionErrorCode}
           testChannel={testChannel}
-          onTestConnection={testConnection}
+          testConnection={testConnection}
           onSetTestChannel={setTestChannel}
 
         />

+ 7 - 6
src/client/js/components/Admin/SlackIntegration/CustomBotWithoutProxySettingsAccordion.jsx

@@ -16,10 +16,11 @@ export const botInstallationStep = {
 };
 
 const CustomBotWithoutProxySettingsAccordion = ({
-  appContainer, activeStep, fetchSlackIntegrationData, connectionMessage, connectionErrorCode, testChannel,
-  slackSigningSecret, slackSigningSecretEnv, slackBotToken, slackBotTokenEnv,
+  appContainer, activeStep,
+  connectionMessage, connectionErrorCode, testChannel, slackSigningSecret, slackSigningSecretEnv, slackBotToken, slackBotTokenEnv,
   isRegisterSlackCredentials, isSendTestMessage,
-  onSetSlackSigningSecret, onSetSlackBotToken, onTestConnection, onSetTestChannel,
+  fetchSlackIntegrationData, testConnection,
+  onSetSlackSigningSecret, onSetSlackBotToken, onSetTestChannel,
 }) => {
   const { t } = useTranslation();
   // TODO: GW-5644 Store default open accordion
@@ -68,10 +69,10 @@ const CustomBotWithoutProxySettingsAccordion = ({
   const submitForm = (e) => {
     e.preventDefault();
 
-    if (onTestConnection == null) {
+    if (testConnection == null) {
       return;
     }
-    onTestConnection();
+    testConnection();
   };
 
 
@@ -207,9 +208,9 @@ CustomBotWithoutProxySettingsAccordion.propTypes = {
   isRegisterSlackCredentials: PropTypes.bool,
   isSendTestMessage: PropTypes.bool,
   fetchSlackIntegrationData: PropTypes.func,
+  testConnection: PropTypes.func,
   onSetSlackSigningSecret: PropTypes.func,
   onSetSlackBotToken: PropTypes.func,
-  onTestConnection: PropTypes.func,
   onSetTestChannel:  PropTypes.func,
   connectionMessage: PropTypes.string,
   connectionErrorCode: PropTypes.string,