Browse Source

bot name refuctring

kaori 5 years ago
parent
commit
ded009f26e

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

@@ -26,7 +26,7 @@ const BotTypeCard = (props) => {
               ${props.isActive ? 'bg-primary text-light' : ''}`}
               ${props.isActive ? 'bg-primary text-light' : ''}`}
         >
         >
           <span className="mr-2">
           <span className="mr-2">
-            {props.value.name}
+            {t(`admin:slack_integration.selecting_bot_types.${props.value.name}`)}
 
 
           </span>
           </span>
           <span className="supplementary-bot-name mr-2">
           <span className="supplementary-bot-name mr-2">

+ 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: t('admin:slack_integration.selecting_bot_types.official_bot'),
+      name: '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: t('admin:slack_integration.selecting_bot_types.custom_bot'),
+      name: 'custom_bot',
       supplementaryBotName: t('admin:slack_integration.selecting_bot_types.without_proxy'),
       supplementaryBotName: t('admin:slack_integration.selecting_bot_types.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: t('admin:slack_integration.selecting_bot_types.custom_bot'),
+      name: 'custom_bot',
       supplementaryBotName: t('admin:slack_integration.selecting_bot_types.with_proxy'),
       supplementaryBotName: t('admin:slack_integration.selecting_bot_types.with_proxy'),
       setUp: 'hard',
       setUp: 'hard',
       multiWSIntegration: 'possible',
       multiWSIntegration: 'possible',