|
@@ -23,11 +23,11 @@ const CustomBotWithoutProxySettings = (props) => {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- // const onSetIsSlackScopeSet = () => {
|
|
|
|
|
- // if (props.onSetIsSlackScopeSet != null) {
|
|
|
|
|
- // props.onSetIsSlackScopeSet();
|
|
|
|
|
- // }
|
|
|
|
|
- // };
|
|
|
|
|
|
|
+ const onSetIsSlackScopeSet = () => {
|
|
|
|
|
+ if (props.onSetIsSlackScopeSet != null) {
|
|
|
|
|
+ props.onSetIsSlackScopeSet();
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
const deleteSlackCredentialsHandler = async() => {
|
|
const deleteSlackCredentialsHandler = async() => {
|
|
|
try {
|
|
try {
|
|
@@ -37,7 +37,7 @@ const CustomBotWithoutProxySettings = (props) => {
|
|
|
currentBotType: '',
|
|
currentBotType: '',
|
|
|
});
|
|
});
|
|
|
onSetIsSetupSlackBot(false);
|
|
onSetIsSetupSlackBot(false);
|
|
|
- // onSetIsSlackScopeSet(false);
|
|
|
|
|
|
|
+ onSetIsSlackScopeSet(false);
|
|
|
toastSuccess('success');
|
|
toastSuccess('success');
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
@@ -58,8 +58,6 @@ const CustomBotWithoutProxySettings = (props) => {
|
|
|
siteName={siteName}
|
|
siteName={siteName}
|
|
|
slackWSNameInWithoutProxy={props.slackWSNameInWithoutProxy}
|
|
slackWSNameInWithoutProxy={props.slackWSNameInWithoutProxy}
|
|
|
slackSettingsErrors={slackSettingsErrors}
|
|
slackSettingsErrors={slackSettingsErrors}
|
|
|
- // isSlackScopeSet={slackSettingsErrors.isSlackScopeSet}
|
|
|
|
|
- // isSetupSlackBot={slackSettingsErrors.isSetupSlackBot}
|
|
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
<h2 className="admin-setting-header">{t('admin:slack_integration.custom_bot_without_proxy_settings')}</h2>
|
|
<h2 className="admin-setting-header">{t('admin:slack_integration.custom_bot_without_proxy_settings')}</h2>
|
|
@@ -98,9 +96,6 @@ CustomBotWithoutProxySettings.propTypes = {
|
|
|
slackBotToken: PropTypes.string,
|
|
slackBotToken: PropTypes.string,
|
|
|
slackBotTokenEnv: PropTypes.string,
|
|
slackBotTokenEnv: PropTypes.string,
|
|
|
isRgisterSlackCredentials: PropTypes.bool,
|
|
isRgisterSlackCredentials: PropTypes.bool,
|
|
|
- // isConnectedToSlack: PropTypes.bool,
|
|
|
|
|
- // isSlackScopeSet: PropTypes.bool,
|
|
|
|
|
- // isSetupSlackBot: PropTypes.bool,
|
|
|
|
|
slackSettingsErrors: PropTypes.array,
|
|
slackSettingsErrors: PropTypes.array,
|
|
|
slackWSNameInWithoutProxy: PropTypes.string,
|
|
slackWSNameInWithoutProxy: PropTypes.string,
|
|
|
onSetIsSetupSlackBot: PropTypes.func,
|
|
onSetIsSetupSlackBot: PropTypes.func,
|