|
@@ -28,7 +28,7 @@ const SlackIntegration = (props) => {
|
|
|
const [isSetupSlackBot, setIsSetupSlackBot] = useState(false);
|
|
const [isSetupSlackBot, setIsSetupSlackBot] = useState(false);
|
|
|
|
|
|
|
|
|
|
|
|
|
- const fetchData = useCallback(async() => {
|
|
|
|
|
|
|
+ const fetchData = useCallback(async () => {
|
|
|
try {
|
|
try {
|
|
|
const response = await appContainer.apiv3.get('slack-integration/');
|
|
const response = await appContainer.apiv3.get('slack-integration/');
|
|
|
const { currentBotType, customBotWithoutProxySettings } = response.data.slackBotSettingParams;
|
|
const { currentBotType, customBotWithoutProxySettings } = response.data.slackBotSettingParams;
|
|
@@ -76,7 +76,7 @@ const SlackIntegration = (props) => {
|
|
|
setSelectedBotType(null);
|
|
setSelectedBotType(null);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- const changeCurrentBotSettingsHandler = async() => {
|
|
|
|
|
|
|
+ const changeCurrentBotSettingsHandler = async () => {
|
|
|
try {
|
|
try {
|
|
|
const res = await appContainer.apiv3.put('slack-integration/custom-bot-without-proxy', {
|
|
const res = await appContainer.apiv3.put('slack-integration/custom-bot-without-proxy', {
|
|
|
slackSigningSecret: '',
|
|
slackSigningSecret: '',
|
|
@@ -131,15 +131,18 @@ const SlackIntegration = (props) => {
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
<div className="selecting-bot-type my-5">
|
|
<div className="selecting-bot-type my-5">
|
|
|
- <h2 className="admin-setting-header mb-4">
|
|
|
|
|
- {t('admin:slack_integration.selecting_bot_types.slack_bot')}
|
|
|
|
|
|
|
+ <span className="d-flex align-items-center">
|
|
|
|
|
+ <h2 className="admin-setting-header mb-4">
|
|
|
|
|
+ {t('admin:slack_integration.selecting_bot_types.slack_bot')}
|
|
|
|
|
+ </h2>
|
|
|
|
|
+
|
|
|
<a className="ml-2 btn-link" href="#">
|
|
<a className="ml-2 btn-link" href="#">
|
|
|
<span className="mr-1">{t('admin:slack_integration.selecting_bot_types.detailed_explanation')}</span>
|
|
<span className="mr-1">{t('admin:slack_integration.selecting_bot_types.detailed_explanation')}</span>
|
|
|
{/* TODO: add an appropriate link by GW-5614 */}
|
|
{/* TODO: add an appropriate link by GW-5614 */}
|
|
|
<i className="fa fa-external-link" aria-hidden="true"></i>
|
|
<i className="fa fa-external-link" aria-hidden="true"></i>
|
|
|
</a>
|
|
</a>
|
|
|
|
|
+ </span>
|
|
|
|
|
|
|
|
- </h2>
|
|
|
|
|
|
|
|
|
|
{t('admin:slack_integration.selecting_bot_types.selecting_bot_type')}
|
|
{t('admin:slack_integration.selecting_bot_types.selecting_bot_type')}
|
|
|
|
|
|