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

rename name to botTypeCategory

kaori 5 лет назад
Родитель
Сommit
6791b1586c

+ 2 - 2
src/client/js/components/Admin/SlackIntegration/BotTypeCard.jsx

@@ -34,10 +34,10 @@ const BotTypeCard = (props) => {
               ${props.isActive ? 'bg-primary text-light' : ''}`}
               ${props.isActive ? 'bg-primary text-light' : ''}`}
         >
         >
           <span className="mr-2">
           <span className="mr-2">
-            {t(`admin:slack_integration.selecting_bot_types.${props.value.name}`)}
+            {t(`admin:slack_integration.selecting_bot_types.${props.value.botTypeCategory}`)}
           </span>
           </span>
 
 
-          {props.value.name === 'custom_bot' ? renderSupplementaryBotName() : ''}
+          {props.value.botTypeCategory === 'custom_bot' ? renderSupplementaryBotName() : ''}
 
 
 
 
           {props.value.botType === 'official-bot' ? renderRecommendedBadge() : ''}
           {props.value.botType === 'official-bot' ? renderRecommendedBadge() : ''}

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

@@ -107,14 +107,14 @@ const SlackIntegration = (props) => {
   const botTypes = {
   const botTypes = {
     officialBot: {
     officialBot: {
       botType: 'official-bot',
       botType: 'official-bot',
-      name: 'official_bot',
+      botTypeCategory: 'official_bot',
       setUp: 'easy',
       setUp: 'easy',
       multiWSIntegration: 'possible',
       multiWSIntegration: 'possible',
       securityControl: 'impossible',
       securityControl: 'impossible',
     },
     },
     customBotWithoutProxy: {
     customBotWithoutProxy: {
       botType: 'custom-bot-without-proxy',
       botType: 'custom-bot-without-proxy',
-      name: 'custom_bot',
+      botTypeCategory: 'custom_bot',
       supplementaryBotName: 'without_proxy',
       supplementaryBotName: 'without_proxy',
       setUp: 'normal',
       setUp: 'normal',
       multiWSIntegration: 'impossible',
       multiWSIntegration: 'impossible',
@@ -122,7 +122,7 @@ const SlackIntegration = (props) => {
     },
     },
     customBotWithProxy: {
     customBotWithProxy: {
       botType: 'custom-bot-with-proxy',
       botType: 'custom-bot-with-proxy',
-      name: 'custom_bot',
+      botTypeCategory: 'custom_bot',
       supplementaryBotName: 'with_proxy',
       supplementaryBotName: 'with_proxy',
       setUp: 'hard',
       setUp: 'hard',
       multiWSIntegration: 'possible',
       multiWSIntegration: 'possible',