mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
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">
|
<div className="col-span-12 sm:col-span-6">
|
||||||
<h4 className="text-xl font-semibold">Identifier</h4>
|
<h4 className="text-xl font-semibold">Identifier</h4>
|
||||||
<p className="text-gray-500">
|
<p className="text-gray-500">
|
||||||
Create a 1-6 characters{"'"} identifier for the project.
|
Create a 1-5 characters{"'"} identifier for the project.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-span-12 sm:col-span-6">
|
<div className="col-span-12 sm:col-span-6">
|
||||||
@ -268,13 +268,15 @@ const GeneralSettings: NextPage = () => {
|
|||||||
placeholder="Enter identifier"
|
placeholder="Enter identifier"
|
||||||
validations={{
|
validations={{
|
||||||
required: "Identifier is required",
|
required: "Identifier is required",
|
||||||
|
validate: (value) =>
|
||||||
|
/^[A-Z]+$/.test(value) || "Identifier must be uppercase text.",
|
||||||
minLength: {
|
minLength: {
|
||||||
value: 1,
|
value: 1,
|
||||||
message: "Identifier must at least be of 1 character",
|
message: "Identifier must at least be of 1 character",
|
||||||
},
|
},
|
||||||
maxLength: {
|
maxLength: {
|
||||||
value: 9,
|
value: 5,
|
||||||
message: "Identifier must at most be of 9 characters",
|
message: "Identifier must at most be of 5 characters",
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user