|
|
@@ -51,11 +51,7 @@ const SlackIntegration = (props) => {
|
|
|
|
|
|
const resetAllSettings = async() => {
|
|
|
try {
|
|
|
- await appContainer.apiv3.put('/slack-integration-settings/custom-bot-without-proxy', {
|
|
|
- slackSigningSecret: '',
|
|
|
- slackBotToken: '',
|
|
|
- currentBotType: '',
|
|
|
- });
|
|
|
+ await appContainer.apiv3.delete('/slack-integration-settings/bot-type');
|
|
|
fetchSlackIntegrationData();
|
|
|
toastSuccess('success');
|
|
|
}
|
|
|
@@ -93,12 +89,13 @@ const SlackIntegration = (props) => {
|
|
|
});
|
|
|
setCurrentBotType(res.data.slackBotTypeParam.slackBotType);
|
|
|
setSelectedBotType(null);
|
|
|
- toastSuccess(t('admin:slack_integration.bot_reset_successful'));
|
|
|
setIsRegisterSlackCredentials(false);
|
|
|
setSlackSigningSecret(null);
|
|
|
setSlackBotToken(null);
|
|
|
setIsSendTestMessage(false);
|
|
|
setSlackWSNameInWithoutProxy(null);
|
|
|
+ toastSuccess(t('admin:slack_integration.bot_reset_successful'));
|
|
|
+
|
|
|
}
|
|
|
catch (err) {
|
|
|
toastError(err);
|