This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 25ac15a  feat(route): remove key-auth plugin tip (#2261)
25ac15a is described below

commit 25ac15a128aba569d9e7ad98e96425ef8026fd38
Author: Yu.Bozhong <[email protected]>
AuthorDate: Mon Dec 27 17:56:16 2021 +0800

    feat(route): remove key-auth plugin tip (#2261)
---
 web/src/components/Plugin/PluginDetail.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/web/src/components/Plugin/PluginDetail.tsx 
b/web/src/components/Plugin/PluginDetail.tsx
index 14fd54a..fde1626 100644
--- a/web/src/components/Plugin/PluginDetail.tsx
+++ b/web/src/components/Plugin/PluginDetail.tsx
@@ -115,6 +115,7 @@ const PluginDetail: React.FC<Props> = ({
     { label: monacoModeList.JSON, value: monacoModeList.JSON },
     { label: monacoModeList.YAML, value: monacoModeList.YAML },
   ];
+  const targetPluginName = pluginList.find((item) => item.name === name)?.name;
 
   if (PLUGIN_UI_LIST.includes(name)) {
     modeOptions.push({
@@ -308,7 +309,7 @@ const PluginDetail: React.FC<Props> = ({
   };
 
   const isNoConfigurationRequired =
-    pluginType === 'auth' && schemaType !== 'consumer' && monacoMode !== 
monacoModeList.UIForm;
+    pluginType === 'auth' && schemaType !== 'consumer' && monacoMode !== 
monacoModeList.UIForm && targetPluginName !== 'key-auth';
 
   return (
     <Drawer

Reply via email to