|
@@ -15,6 +15,7 @@ const OfficialBotSettings = (props) => {
|
|
|
const {
|
|
const {
|
|
|
appContainer, slackAppIntegrations, proxyServerUri, onClickAddSlackWorkspaceBtn,
|
|
appContainer, slackAppIntegrations, proxyServerUri, onClickAddSlackWorkspaceBtn,
|
|
|
} = props;
|
|
} = props;
|
|
|
|
|
+ const [siteName, setSiteName] = useState('');
|
|
|
const [isDeleteConfirmModalShown, setIsDeleteConfirmModalShown] = useState(false);
|
|
const [isDeleteConfirmModalShown, setIsDeleteConfirmModalShown] = useState(false);
|
|
|
const { t } = useTranslation();
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
@@ -77,18 +78,17 @@ const OfficialBotSettings = (props) => {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ useEffect(() => {
|
|
|
|
|
+ const siteName = appContainer.config.crowi.title;
|
|
|
|
|
+ setSiteName(siteName);
|
|
|
|
|
+ }, [appContainer]);
|
|
|
|
|
+
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
<h2 className="admin-setting-header">{t('admin:slack_integration.official_bot_integration')}</h2>
|
|
<h2 className="admin-setting-header">{t('admin:slack_integration.official_bot_integration')}</h2>
|
|
|
{/* TODO delete tmp props */}
|
|
{/* TODO delete tmp props */}
|
|
|
<CustomBotWithProxyIntegrationCard
|
|
<CustomBotWithProxyIntegrationCard
|
|
|
- growiApps={
|
|
|
|
|
- [
|
|
|
|
|
- { name: 'siteName1', active: true },
|
|
|
|
|
- { name: 'siteName2', active: false },
|
|
|
|
|
- { name: 'siteName3', active: false },
|
|
|
|
|
- ]
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ siteName={siteName}
|
|
|
slackWorkSpaces={
|
|
slackWorkSpaces={
|
|
|
[
|
|
[
|
|
|
{ name: 'wsName1', active: true },
|
|
{ name: 'wsName1', active: true },
|