|
@@ -51,9 +51,9 @@ const CustomBotWithProxySettings = (props) => {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- const generateTokenHandler = async() => {
|
|
|
|
|
|
|
+ const generateTokenHandler = async(tokenGtoP, tokenPtoG) => {
|
|
|
try {
|
|
try {
|
|
|
- await appContainer.apiv3.put('/slack-integration-settings/access-tokens');
|
|
|
|
|
|
|
+ await appContainer.apiv3.put('/slack-integration-settings/access-tokens', { tokenGtoP, tokenPtoG });
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
|
toastError(err);
|
|
toastError(err);
|
|
@@ -142,7 +142,7 @@ const CustomBotWithProxySettings = (props) => {
|
|
|
<WithProxyAccordions
|
|
<WithProxyAccordions
|
|
|
botType="customBotWithProxy"
|
|
botType="customBotWithProxy"
|
|
|
discardTokenHandler={() => discardTokenHandler(tokenGtoP, tokenPtoG)}
|
|
discardTokenHandler={() => discardTokenHandler(tokenGtoP, tokenPtoG)}
|
|
|
- generateTokenHandler={generateTokenHandler}
|
|
|
|
|
|
|
+ onClickRegenerateTokens={generateTokenHandler(tokenGtoP, tokenPtoG)}
|
|
|
tokenGtoP={tokenGtoP}
|
|
tokenGtoP={tokenGtoP}
|
|
|
tokenPtoG={tokenPtoG}
|
|
tokenPtoG={tokenPtoG}
|
|
|
/>
|
|
/>
|