|
@@ -23,6 +23,12 @@ const CustomBotWithoutProxySettings = (props) => {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ const onSetIsSlackScopeSet = () => {
|
|
|
|
|
+ if (props.onSetIsSlackScopeSet != null) {
|
|
|
|
|
+ props.onSetIsSlackScopeSet();
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
const deleteSlackCredentialsHandler = async() => {
|
|
const deleteSlackCredentialsHandler = async() => {
|
|
|
try {
|
|
try {
|
|
|
await appContainer.apiv3.put('/slack-integration/custom-bot-without-proxy', {
|
|
await appContainer.apiv3.put('/slack-integration/custom-bot-without-proxy', {
|
|
@@ -31,6 +37,7 @@ const CustomBotWithoutProxySettings = (props) => {
|
|
|
currentBotType: '',
|
|
currentBotType: '',
|
|
|
});
|
|
});
|
|
|
onSetIsSetupSlackBot(false);
|
|
onSetIsSetupSlackBot(false);
|
|
|
|
|
+ onSetIsSlackScopeSet(false);
|
|
|
toastSuccess('success');
|
|
toastSuccess('success');
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
@@ -95,6 +102,7 @@ CustomBotWithoutProxySettings.propTypes = {
|
|
|
isSetupSlackBot: PropTypes.bool,
|
|
isSetupSlackBot: PropTypes.bool,
|
|
|
slackWSNameInWithoutProxy: PropTypes.string,
|
|
slackWSNameInWithoutProxy: PropTypes.string,
|
|
|
onSetIsSetupSlackBot: PropTypes.func,
|
|
onSetIsSetupSlackBot: PropTypes.func,
|
|
|
|
|
+ onSetIsSlackScopeSet: PropTypes.func,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
export default CustomBotWithoutProxySettingsWrapper;
|
|
export default CustomBotWithoutProxySettingsWrapper;
|