|
@@ -15,13 +15,11 @@ const CustomBotWithoutProxySecretTokenSection = (props) => {
|
|
|
const [inputBotToken, setBotToken] = useState(slackBotToken);
|
|
const [inputBotToken, setBotToken] = useState(slackBotToken);
|
|
|
const { t } = useTranslation();
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
|
- const currentBotType = 'customBotWithoutProxy';
|
|
|
|
|
const updatedSecretToken = async() => {
|
|
const updatedSecretToken = async() => {
|
|
|
try {
|
|
try {
|
|
|
await appContainer.apiv3.put('/slack-integration-settings/without-proxy/update-settings', {
|
|
await appContainer.apiv3.put('/slack-integration-settings/without-proxy/update-settings', {
|
|
|
slackSigningSecret: inputSigningSecret,
|
|
slackSigningSecret: inputSigningSecret,
|
|
|
slackBotToken: inputBotToken,
|
|
slackBotToken: inputBotToken,
|
|
|
- currentBotType,
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
if (onUpdatedSecretToken == null) {
|
|
if (onUpdatedSecretToken == null) {
|
|
@@ -39,6 +37,8 @@ const CustomBotWithoutProxySecretTokenSection = (props) => {
|
|
|
setInputSigningSecret(slackSigningSecret);
|
|
setInputSigningSecret(slackSigningSecret);
|
|
|
setBotToken(slackBotToken);
|
|
setBotToken(slackBotToken);
|
|
|
}, [slackSigningSecret, slackBotToken]);
|
|
}, [slackSigningSecret, slackBotToken]);
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
return (
|
|
return (
|
|
|
<div className="w-75 mx-auto">
|
|
<div className="w-75 mx-auto">
|
|
|
|
|
|