소스 검색

eg.general

zahmis 5 년 전
부모
커밋
82fe81d24d
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      src/client/js/components/Admin/SlackIntegration/CustomBotWithoutProxySettingsAccordion.jsx

+ 1 - 4
src/client/js/components/Admin/SlackIntegration/CustomBotWithoutProxySettingsAccordion.jsx

@@ -4,7 +4,6 @@ import { useTranslation } from 'react-i18next';
 import { Collapse } from 'reactstrap';
 import AppContainer from '../../../services/AppContainer';
 import { withUnstatedContainers } from '../../UnstatedUtils';
-import { toastSuccess, toastError } from '../../../util/apiNotification';
 
 const CustomBotWithoutProxySettingsAccordion = (props) => {
   const { appContainer } = props;
@@ -35,12 +34,10 @@ const CustomBotWithoutProxySettingsAccordion = (props) => {
         channel: testChannel,
       });
       setConnectionSuccessMessage(res.data.message);
-      toastSuccess(`Successfuly send message #${testChannel}.`);
     }
     catch (err) {
       setConnectionErrorCode(err[0].code);
       setConnectionErrorMessage(err[0].message);
-      toastError(err);
     }
   };
 
@@ -161,7 +158,7 @@ const CustomBotWithoutProxySettingsAccordion = (props) => {
                     className="form-control"
                     type="text"
                     value={testChannel}
-                    placeholder="Input channel invited bot"
+                    placeholder="eg. general"
                     onChange={e => inputTestChannelHandler(e.target.value)}
                   />
                 </div>