فهرست منبع

Merge pull request #3723 from weseek/feat/GW-5846-reset-button

reset button
Shun Miyazawa 4 سال پیش
والد
کامیت
528d6d3910

+ 1 - 0
resource/locales/en_US/admin/admin.json

@@ -293,6 +293,7 @@
     "official_bot_settings": "Official bot Settings",
     "custom_bot_without_proxy_settings": "Custom Bot without proxy Settings",
     "reset": "Reset",
+    "reset_all_settings": "Reset all settings",
     "delete_slackbot_settings": "Reset Slack Bot settings",
     "slackbot_settings_notice": "Reset",
     "accordion": {

+ 1 - 0
resource/locales/ja_JP/admin/admin.json

@@ -290,6 +290,7 @@
     "cooperation_procedure": "連携手順",
     "custom_bot_without_proxy_settings": "Custom Bot (Without-Proxy) 設定",
     "reset": "リセット",
+    "reset_all_settings": "全ての設定をリセット",
     "delete_slackbot_settings": "Slack Bot 設定をリセットする",
     "slackbot_settings_notice": "リセットします",
     "accordion": {

+ 1 - 0
resource/locales/zh_CN/admin/admin.json

@@ -300,6 +300,7 @@
     "cooperation_procedure": "协作程序",
     "custom_bot_without_proxy_settings": "Custom Bot (Without-Proxy) 设置",
     "reset":"重置",
+    "reset_all_settings": "重置所有设置",
     "delete_slackbot_settings": "重置 Slack Bot 设置",
     "slackbot_settings_notice": "重置",
     "accordion": {

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

@@ -134,7 +134,19 @@ const SlackIntegration = (props) => {
           </a>
         </h2>
 
-        {t('admin:slack_integration.selecting_bot_types.selecting_bot_type')}
+        <div className="d-flex justify-content">
+          <div className="mr-auto">
+            {t('admin:slack_integration.selecting_bot_types.selecting_bot_type')}
+          </div>
+
+          {(currentBotType === 'officialBot' || currentBotType === 'customBotWithProxy') && (
+            <button
+              className="mx-3 btn btn-outline-danger flex-end"
+              type="button"
+            >{t('admin:slack_integration.reset_all_settings')}
+            </button>
+          )}
+        </div>
 
         <div className="row my-5 flex-wrap-reverse justify-content-center">
           {botTypes.map((botType) => {