You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/07/26 17:16:41 UTC

[GitHub] [apisix-dashboard] guoqqqi commented on a change in pull request #1998: feat(plugin): allowing limit-count to dynamically adapt to the BE rules

guoqqqi commented on a change in pull request #1998:
URL: https://github.com/apache/apisix-dashboard/pull/1998#discussion_r676795398



##########
File path: web/src/components/Plugin/UI/limit-count.tsx
##########
@@ -135,7 +145,7 @@ const RedisClusterForm: React.FC = () => {
                       </Form.Item>
                     </Col>
                     <Col style={{ ...removeBtnStyle, marginLeft: -10 }}>
-                      {fields.length > 1 ? (
+                      {fields.length > minLength ? (

Review comment:
       I think it would be better to change this part of the Conditional (ternary) operator to the && operator

##########
File path: web/src/components/Plugin/UI/limit-count.tsx
##########
@@ -149,14 +159,14 @@ const RedisClusterForm: React.FC = () => {
               </Form.Item>
 
               <Form.Item {...FORM_ITEM_WITHOUT_LABEL}>
-                <Button
+                {fields.length < maxLength?(<Button

Review comment:
       ditto




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org