juzhiyuan commented on a change in pull request #172: feature: improve project 
structure and fix some problem
URL: 
https://github.com/apache/incubator-apisix-dashboard/pull/172#discussion_r407036587
 
 

 ##########
 File path: src/pages/SSLModule/detail/index.tsx
 ##########
 @@ -63,41 +82,43 @@ const Detail: React.FC = () => {
             label="SNI"
             name="sni"
             rules={[
-              { required: true, message: formatMessage({ id: 
'component.ssl.fieldSNIInvalid' }) },
+              {required: true, message: formatMessage({id: 
'component.ssl.fieldSNIInvalid'})},
             ]}
           >
-            <Input />
+            <Input/>
           </Form.Item>
 
           <Form.Item
             label="Cert"
             name="cert"
             rules={[
-              { required: true, message: formatMessage({ id: 
'component.ssl.fieldCertInvalid' }) },
+              {required: true, message: formatMessage({id: 
'component.ssl.fieldCertInvalid'})},
+              {min: 128, message: formatMessage({id: 
'component.ssl.fieldCertTooShort'})},
             ]}
           >
-            <Input.TextArea rows={6} />
+            <Input.TextArea rows={6}/>
 
 Review comment:
   ,

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to