Просмотр исходного кода

renamed handler of custom bot with proxy

kaori 4 лет назад
Родитель
Сommit
7a7f5aa83d
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/client/js/components/Admin/SlackIntegration/WithProxyAccordions.jsx

+ 3 - 3
src/client/js/components/Admin/SlackIntegration/WithProxyAccordions.jsx

@@ -73,9 +73,9 @@ const RegisteringProxyUrlProcess = () => {
 const GeneratingTokensAndRegisteringProxyServiceProcess = withUnstatedContainers((props) => {
 const GeneratingTokensAndRegisteringProxyServiceProcess = withUnstatedContainers((props) => {
   const { t } = useTranslation();
   const { t } = useTranslation();
 
 
-  const generateTokenHandler = () => {
+  const regenerateTokensHandler = () => {
     if (props.generateTokenHandler != null) {
     if (props.generateTokenHandler != null) {
-      props.generateTokenHandler();
+      props.onClickRegenerateTokens();
     }
     }
   };
   };
 
 
@@ -128,7 +128,7 @@ const GeneratingTokensAndRegisteringProxyServiceProcess = withUnstatedContainers
           <button
           <button
             type="button"
             type="button"
             className="btn btn-primary mx-2"
             className="btn btn-primary mx-2"
-            onClick={generateTokenHandler}
+            onClick={regenerateTokensHandler}
           >
           >
             { t('admin:slack_integration.access_token_settings.generate') }
             { t('admin:slack_integration.access_token_settings.generate') }
           </button>
           </button>