Skip to content

Commit

Permalink
validate module name length
Browse files Browse the repository at this point in the history
  • Loading branch information
alfespa17 committed May 3, 2024
1 parent 8a37439 commit 07f0390
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ui/src/domain/Modules/Create.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,17 @@ export const CreateModule = () => {
<Form.Item
name="name"
label="Module Name"
rules={[{ required: true }, { maxLength: 32, message: "Value should be less than 32 character"}]}
rules={[{ required: true }, {
max: 32,
message: "Value should be less than 32 character",
},]}
extra="The name of your module generally names the abstraction that the module is intending to create."
>
<Input />
<Input
onChange={(value) => {
this.props.setValue(value);
}}
/>
</Form.Item>

<Form.Item
Expand Down

0 comments on commit 07f0390

Please sign in to comment.