You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/08/10 03:22:55 UTC

[GitHub] [inlong] leezng commented on a diff in pull request #5444: [INLONG-5406][Dashboard] No restrictions are added to the input of port numbers, such as dataproxy node

leezng commented on code in PR #5444:
URL: https://github.com/apache/inlong/pull/5444#discussion_r941971751


##########
inlong-dashboard/src/pages/Clusters/NodeEditModal.tsx:
##########
@@ -83,11 +84,23 @@ const NodeEditModal: React.FC<NodeEditModalProps> = ({ id, type, clusterId, ...m
         type: 'input',
         label: 'IP',
         name: 'ip',
+        rules: [
+          {
+            pattern: rulesPattern.ip,
+            message: i18n.t('pages.Clusters.Node.IpRule'),
+          },
+        ],
       },
       {
         type: 'input',

Review Comment:
   use `inputnumber`, set `min` and `max`



-- 
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: commits-unsubscribe@inlong.apache.org

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