فهرست منبع

enable show integration success sentence

Shun Miyazawa 5 سال پیش
والد
کامیت
6885e2426c
1فایلهای تغییر یافته به همراه13 افزوده شده و 5 حذف شده
  1. 13 5
      src/client/js/components/Admin/SlackIntegration/CustomBotWithProxyIntegrationCard.jsx

+ 13 - 5
src/client/js/components/Admin/SlackIntegration/CustomBotWithProxyIntegrationCard.jsx

@@ -16,11 +16,19 @@ const CustomBotWithProxyIntegrationCard = (props) => {
         </div>
 
         <div className="text-center w-25">
-          <small
-            className="text-secondary"
-            // eslint-disable-next-line react/no-danger
-            dangerouslySetInnerHTML={{ __html: t('admin:slack_integration.integration_sentence.integration_is_not_complete') }}
-          />
+          {props.isSlackScopeSet && (
+            <p className="text-success small">
+              <i className="fa fa-check mr-1" />
+              {t('admin:slack_integration.integration_sentence.integration_successful')}
+            </p>
+          )}
+          {!props.isSlackScopeSet && (
+            <small
+              className="text-secondary"
+              // eslint-disable-next-line react/no-danger
+              dangerouslySetInnerHTML={{ __html: t('admin:slack_integration.integration_sentence.integration_is_not_complete') }}
+            />
+          )}
           <div className="pt-2">
             <div className="position-relative mt-5">
               <div className="circle position-absolute bg-primary border-light">