|
@@ -16,7 +16,7 @@ export const botInstallationStep = {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const CustomBotWithoutProxySettingsAccordion = ({
|
|
const CustomBotWithoutProxySettingsAccordion = ({
|
|
|
- appContainer, activeStep,
|
|
|
|
|
|
|
+ appContainer, activeStep, fetchData,
|
|
|
slackSigningSecret, slackSigningSecretEnv, slackBotToken, slackBotTokenEnv,
|
|
slackSigningSecret, slackSigningSecretEnv, slackBotToken, slackBotTokenEnv,
|
|
|
isRegisterSlackCredentials, isSendTestMessage, isConnectedToSlack,
|
|
isRegisterSlackCredentials, isSendTestMessage, isConnectedToSlack,
|
|
|
onSetSlackSigningSecret, onSetSlackBotToken, onSetIsSendTestMessage, onSetIsRegisterSlackCredentials,
|
|
onSetSlackSigningSecret, onSetSlackBotToken, onSetIsSendTestMessage, onSetIsRegisterSlackCredentials,
|
|
@@ -31,15 +31,17 @@ const CustomBotWithoutProxySettingsAccordion = ({
|
|
|
const [testChannel, setTestChannel] = useState('');
|
|
const [testChannel, setTestChannel] = useState('');
|
|
|
const currentBotType = 'customBotWithoutProxy';
|
|
const currentBotType = 'customBotWithoutProxy';
|
|
|
|
|
|
|
|
|
|
+
|
|
|
const updateSecretTokenHandler = async() => {
|
|
const updateSecretTokenHandler = async() => {
|
|
|
try {
|
|
try {
|
|
|
- const res = await appContainer.apiv3.put('/slack-integration/custom-bot-without-proxy', {
|
|
|
|
|
|
|
+ await appContainer.apiv3.put('/slack-integration/custom-bot-without-proxy', {
|
|
|
slackSigningSecret,
|
|
slackSigningSecret,
|
|
|
slackBotToken,
|
|
slackBotToken,
|
|
|
currentBotType,
|
|
currentBotType,
|
|
|
});
|
|
});
|
|
|
|
|
+ fetchData();
|
|
|
|
|
|
|
|
- const { isConnectedToSlack } = res.data.customBotWithoutProxySettingParams;
|
|
|
|
|
|
|
+ // const { isConnectedToSlack } = res.data.customBotWithoutProxySettingParams;
|
|
|
|
|
|
|
|
if (isConnectedToSlack) {
|
|
if (isConnectedToSlack) {
|
|
|
onSetIsRegisterSlackCredentials(true);
|
|
onSetIsRegisterSlackCredentials(true);
|