@@ -38,7 +38,13 @@ const CustomBotWithoutProxySettingsAccordion = ({
slackBotToken,
currentBotType,
});
+
setIsRegisterSlackCredentials(true);
+ if (slackSigningSecret === '' || slackBotToken === '') {
+ setIsRegisterSlackCredentials(false);
+ setIsSendTestMessage(false);
+ }
toastSuccess(t('toaster.update_successed', { target: t('admin:slack_integration.custom_bot_without_proxy_settings') }));
}
catch (err) {
@@ -186,6 +186,7 @@ module.exports = (crowi) => {
accessTokenParser, loginRequiredStrictly, adminRequired, csrf, validator.CustomBotWithoutProxy, apiV3FormValidator, async(req, res) => {
const { slackSigningSecret, slackBotToken, currentBotType } = req.body;
+ console.log(req.params);
const requestParams = {
'slackbot:signingSecret': slackSigningSecret,
'slackbot:token': slackBotToken,