commit | 9513ecbc22f9a6a996b4fe095328c7829131f88b | [log] [tgz] |
---|---|---|
author | princeap173 <princeap173@gmail.com> | Sat Jan 13 22:19:09 2024 +0530 |
committer | Mehul Parikh <mehul@apache.org> | Tue Jan 30 14:02:42 2024 +0530 |
tree | cee7cbeb5b1bc50dc6fbdd57381a0ff2bd83479a | |
parent | 861dd2bd6c3ce22429a214a11416df2e2f2623e3 [diff] |
RANGER-4653: Add inline assertions for displayName length in service creation / update form Signed-off-by: Mehul Parikh <mehul@apache.org>
diff --git a/security-admin/src/main/webapp/react-webapp/src/views/ServiceManager/ServiceForm.jsx b/security-admin/src/main/webapp/react-webapp/src/views/ServiceManager/ServiceForm.jsx index abb9895..99808da 100644 --- a/security-admin/src/main/webapp/react-webapp/src/views/ServiceManager/ServiceForm.jsx +++ b/security-admin/src/main/webapp/react-webapp/src/views/ServiceManager/ServiceForm.jsx
@@ -1100,7 +1100,10 @@ </Row> )} </Field> - <Field name="displayName"> + <Field + name="displayName" + validate={this.composeValidators( + this.validateServiceName)}> {({ input, meta }) => ( <Row className="form-group"> <Col xs={3}>