Просмотр исходного кода

add setup at slack-integration-legacy

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

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

@@ -31,7 +31,7 @@ const CustomBotWithoutProxySettings = (props) => {
 
 
   const deleteSlackSettingsHandler = async() => {
   const deleteSlackSettingsHandler = async() => {
     try {
     try {
-      await appContainer.apiv3.put('/slack-integration/custom-bot-without-proxy', {
+      await appContainer.apiv3.put('/slack-integration-legacy/custom-bot-without-proxy', {
         slackSigningSecret: '',
         slackSigningSecret: '',
         slackBotToken: '',
         slackBotToken: '',
         currentBotType: '',
         currentBotType: '',

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

@@ -106,6 +106,7 @@ module.exports = (crowi) => {
         slackSigningSecret: crowi.configManager.getConfig('crowi', 'slackbot:signingSecret'),
         slackSigningSecret: crowi.configManager.getConfig('crowi', 'slackbot:signingSecret'),
         slackBotToken: crowi.configManager.getConfig('crowi', 'slackbot:token'),
         slackBotToken: crowi.configManager.getConfig('crowi', 'slackbot:token'),
         isConnectedToSlack: crowi.slackBotService.isConnectedToSlack,
         isConnectedToSlack: crowi.slackBotService.isConnectedToSlack,
+        isSetupSlackBot: crowi.slackBotService.isSetupSlackBot,
       },
       },
       // TODO imple when creating with proxy
       // TODO imple when creating with proxy
       customBotWithProxySettings: {
       customBotWithProxySettings: {