Make validation match required project-title length
When creating a new project, StoryBoard asks the user for a project title. Once that title is over 3 characters in length, a big green tick is placed next to it. However, the title needs to be a minimum of 5 characters in order for the project to actually be saved. This commit makes the big green tick only appear once a title is 5 characters or more in length. Change-Id: Icbbe46ba6ef5abd9d818532761bf09cae675b0b3
This commit is contained in:
parent
d6e8bf2a17
commit
a79c818582
|
@ -40,7 +40,7 @@
|
|||
required
|
||||
ng-pattern="PROJECT_NAME_REGEX"
|
||||
maxlength="50"
|
||||
ng-minlength="3"
|
||||
ng-minlength="5"
|
||||
placeholder="Project Name">
|
||||
<span class="form-control-feedback"
|
||||
ng-show="projectForm.name.$invalid">
|
||||
|
@ -64,7 +64,7 @@
|
|||
contain two or more sequential separators.
|
||||
</span>
|
||||
<span ng-show="projectForm.name.$error.minlength">
|
||||
A project name must have at least 3 characters.
|
||||
A project name must have at least 5 characters.
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue