|
@@ -13,7 +13,7 @@ const logger = loggerFactory('growi:SlackBotSettings');
|
|
|
|
|
|
|
|
const CustomBotWithProxySettings = (props) => {
|
|
const CustomBotWithProxySettings = (props) => {
|
|
|
const {
|
|
const {
|
|
|
- appContainer, slackAppIntegrations, proxyServerUri, onClickAddAccordionBtn,
|
|
|
|
|
|
|
+ appContainer, slackAppIntegrations, proxyServerUri, onClickAddSlackWorkspaceBtn,
|
|
|
} = props;
|
|
} = props;
|
|
|
const [isDeleteConfirmModalShown, setIsDeleteConfirmModalShown] = useState(false);
|
|
const [isDeleteConfirmModalShown, setIsDeleteConfirmModalShown] = useState(false);
|
|
|
const { t } = useTranslation();
|
|
const { t } = useTranslation();
|
|
@@ -30,10 +30,10 @@ const CustomBotWithProxySettings = (props) => {
|
|
|
try {
|
|
try {
|
|
|
await appContainer.apiv3.put('/slack-integration-settings/slack-app-integrations');
|
|
await appContainer.apiv3.put('/slack-integration-settings/slack-app-integrations');
|
|
|
|
|
|
|
|
- if (onClickAddAccordionBtn == null) {
|
|
|
|
|
|
|
+ if (onClickAddSlackWorkspaceBtn == null) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- onClickAddAccordionBtn();
|
|
|
|
|
|
|
+ onClickAddSlackWorkspaceBtn();
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
|
toastError(err);
|
|
toastError(err);
|
|
@@ -180,7 +180,7 @@ CustomBotWithProxySettings.propTypes = {
|
|
|
|
|
|
|
|
slackAppIntegrations: PropTypes.array,
|
|
slackAppIntegrations: PropTypes.array,
|
|
|
proxyServerUri: PropTypes.string,
|
|
proxyServerUri: PropTypes.string,
|
|
|
- onClickAddAccordionBtn: PropTypes.func,
|
|
|
|
|
|
|
+ onClickAddSlackWorkspaceBtn: PropTypes.func,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
export default CustomBotWithProxySettingsWrapper;
|
|
export default CustomBotWithProxySettingsWrapper;
|