forked from github/plane
fix: project setting identifier (#766)
* fix: project setting identifier validation added * fix: project setting identifier label fix
This commit is contained in:
parent
7aa0ace555
commit
748e5e7fb7
@ -255,7 +255,7 @@ const GeneralSettings: NextPage = () => {
|
||||
<div className="col-span-12 sm:col-span-6">
|
||||
<h4 className="text-xl font-semibold">Identifier</h4>
|
||||
<p className="text-gray-500">
|
||||
Create a 1-6 characters{"'"} identifier for the project.
|
||||
Create a 1-5 characters{"'"} identifier for the project.
|
||||
</p>
|
||||
</div>
|
||||
<div className="col-span-12 sm:col-span-6">
|
||||
@ -268,13 +268,15 @@ const GeneralSettings: NextPage = () => {
|
||||
placeholder="Enter identifier"
|
||||
validations={{
|
||||
required: "Identifier is required",
|
||||
validate: (value) =>
|
||||
/^[A-Z]+$/.test(value) || "Identifier must be uppercase text.",
|
||||
minLength: {
|
||||
value: 1,
|
||||
message: "Identifier must at least be of 1 character",
|
||||
},
|
||||
maxLength: {
|
||||
value: 9,
|
||||
message: "Identifier must at most be of 9 characters",
|
||||
value: 5,
|
||||
message: "Identifier must at most be of 5 characters",
|
||||
},
|
||||
}}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user