|
|
@@ -8,7 +8,7 @@ import { toastError } from '../../../util/apiNotification';
|
|
|
import CustomBotWithoutProxySettingsAccordion, { botInstallationStep } from './CustomBotWithoutProxySettingsAccordion';
|
|
|
|
|
|
const CustomBotWithoutProxySettings = (props) => {
|
|
|
- const { appContainer } = props;
|
|
|
+ const { appContainer, onSetIsRegisterSlackCredentials, isConnectedToSlack } = props;
|
|
|
const { t } = useTranslation();
|
|
|
|
|
|
const [slackWSNameInWithoutProxy, setSlackWSNameInWithoutProxy] = useState(null);
|
|
|
@@ -27,12 +27,13 @@ const CustomBotWithoutProxySettings = (props) => {
|
|
|
|
|
|
useEffect(() => {
|
|
|
const siteName = appContainer.config.crowi.title;
|
|
|
+ onSetIsRegisterSlackCredentials(isConnectedToSlack);
|
|
|
setSiteName(siteName);
|
|
|
|
|
|
if (props.isSetupSlackBot) {
|
|
|
fetchSlackWorkSpaceName();
|
|
|
}
|
|
|
- }, [appContainer, fetchSlackWorkSpaceName, props.isSetupSlackBot]);
|
|
|
+ }, [appContainer, fetchSlackWorkSpaceName, props, isConnectedToSlack, onSetIsRegisterSlackCredentials]);
|
|
|
|
|
|
return (
|
|
|
<>
|
|
|
@@ -63,7 +64,11 @@ const CustomBotWithoutProxySettings = (props) => {
|
|
|
)}
|
|
|
{!props.isSetupSlackBot && (
|
|
|
<div className="mt-4">
|
|
|
- <small className="text-secondary m-0" dangerouslySetInnerHTML={{ __html: t('admin:slack_integration.integration_sentence.integration_is_not_complete') }} />
|
|
|
+ <small
|
|
|
+ className="text-secondary m-0"
|
|
|
+ // eslint-disable-next-line react/no-danger
|
|
|
+ dangerouslySetInnerHTML={{ __html: t('admin:slack_integration.integration_sentence.integration_is_not_complete') }}
|
|
|
+ />
|
|
|
<hr className="align-self-center admin-border-danger border-danger"></hr>
|
|
|
</div>
|
|
|
)}
|