소스 검색

add disabled

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

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

@@ -164,6 +164,7 @@ const CustomBotWithoutProxySettingsAccordion = ({
               <button
                 type="button"
                 className="btn btn-info m-3 font-weight-bold"
+                disabled={testChannel.trim() === ''}
                 onClick={onTestConnectionHandler}
               >Test
               </button>