zahmis 5 lat temu
rodzic
commit
a431b3fa29

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

@@ -38,6 +38,7 @@ const SlackIntegration = (props) => {
         slackSigningSecret, slackBotToken, slackSigningSecretEnvVars, slackBotTokenEnvVars, isSetupSlackBot,
       } = customBotWithoutProxySettings;
 
+      console.log(slackSigningSecret);
       setCurrentBotType(currentBotType);
       setAccessToken(accessToken);
       setSlackSigningSecret(slackSigningSecret);
@@ -86,6 +87,9 @@ const SlackIntegration = (props) => {
       setCurrentBotType(res.data.customBotWithoutProxySettingParams.slackBotType);
       setSelectedBotType(null);
       toastSuccess(t('admin:slack_integration.bot_reset_successful'));
+      setIsRegisterSlackCredentials(false);
+      setSlackSigningSecret('');
+      setSlackBotToken('');
     }
     catch (err) {
       toastError(err);

+ 0 - 1
src/server/routes/apiv3/slack-integration.js

@@ -190,7 +190,6 @@ module.exports = (crowi) => {
         'slackbot:token': slackBotToken,
         'slackbot:currentBotType': currentBotType,
       };
-
       try {
         await updateSlackBotSettings(requestParams);