Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
verona-modules-aspect
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IQB
verona-modules-aspect
Commits
b225825c
Commit
b225825c
authored
3 years ago
by
jojohoch
Browse files
Options
Downloads
Patches
Plain Diff
[player] Correct minlength and maxlength validations
parent
db70040d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
projects/player/src/app/components/validation-message/validation-message.component.ts
+4
-6
4 additions, 6 deletions
...onents/validation-message/validation-message.component.ts
projects/player/src/assets/i18n/de.json
+2
-4
2 additions, 4 deletions
projects/player/src/assets/i18n/de.json
with
6 additions
and
10 deletions
projects/player/src/app/components/validation-message/validation-message.component.ts
+
4
−
6
View file @
b225825c
...
...
@@ -23,8 +23,6 @@ export class ValidationMessageComponent implements OnInit {
requiredTrueMessage
!
:
string
;
minLengthWarnMessage
!
:
string
;
maxLengthWarnMessage
!
:
string
;
minMessage
!
:
string
;
maxMessage
!
:
string
;
constructor
(
private
formService
:
FormService
,
private
translateService
:
TranslateService
)
{}
...
...
@@ -47,11 +45,11 @@ export class ValidationMessageComponent implements OnInit {
validators
.
push
(
Validators
.
required
);
}
}
if
(
this
.
elementModel
.
min
)
{
validators
.
push
(
Validators
.
minLength
(
<
number
>
this
.
elementModel
.
min
));
if
(
this
.
elementModel
.
min
Length
)
{
validators
.
push
(
Validators
.
minLength
(
<
number
>
this
.
elementModel
.
min
Length
));
}
if
(
this
.
elementModel
.
max
)
{
validators
.
push
(
Validators
.
maxLength
(
<
number
>
this
.
elementModel
.
max
));
if
(
this
.
elementModel
.
max
Length
)
{
validators
.
push
(
Validators
.
maxLength
(
<
number
>
this
.
elementModel
.
max
Length
));
}
return
validators
;
}
...
...
This diff is collapsed.
Click to expand it.
projects/player/src/assets/i18n/de.json
+
2
−
4
View file @
b225825c
...
...
@@ -6,10 +6,8 @@
"validators"
:
{
"inputRequired"
:
"Eingabe erforderlich"
,
"inputRequiredTrue"
:
"Ankreuzen erforderlich"
,
"InputTooShort"
:
"Eingabe zu kurz"
,
"InputTooLong"
:
"Eingabe zu lang"
,
"ValueTooSmall"
:
"Wert zu klein"
,
"ValueTooBig"
:
"Wert zu groß"
"inputTooShort"
:
"Eingabe zu kurz"
,
"inputTooLong"
:
"Eingabe zu lang"
},
"dialogTitle"
:
{
"wrongUnitDefinitionType"
:
"Falscher Unit-Definition-Type"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment