-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug/1279 metric checkin value is not validated correctly #1329
base: main
Are you sure you want to change the base?
Conversation
…n metric value field
…see if error message is shown
46157a6
to
f2d53cd
Compare
frontend/src/app/components/checkin/check-in-form-metric/check-in-form-metric.component.ts
Outdated
Show resolved
Hide resolved
frontend/src/app/components/checkin/check-in-form/check-in-form.component.ts
Outdated
Show resolved
Hide resolved
frontend/src/app/components/checkin/check-in-form/check-in-form.component.ts
Outdated
Show resolved
Hide resolved
frontend/src/app/components/checkin/check-in-form/check-in-form.component.ts
Outdated
Show resolved
Hide resolved
frontend/src/app/components/checkin/check-in-form/check-in-form.component.ts
Outdated
Show resolved
Hide resolved
@@ -28,11 +28,6 @@ export class CheckInFormMetricComponent implements OnInit { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is hasFormFieldErrors still used?
@@ -167,10 +177,10 @@ describe('CheckInFormComponent', () => { | |||
component.keyResult = keyResultOrdinal; | |||
component.ngOnInit(); | |||
component.setDefaultValues(); | |||
console.log(component.dialogForm.value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ähmm
...baseCheckIn, | ||
[this.keyResult.keyResultType === 'ordinal' ? 'zone' : 'value']: this.dialogForm.controls.value.value | ||
}; | ||
this.keyResult.keyResultType === 'metric' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that looks very weird improve readability
@@ -178,4 +176,11 @@ export class CheckInFormComponent implements OnInit { | |||
this.dialogForm.patchValue({ actionList: actionList }); | |||
this.isAddingAction = false; | |||
} | |||
|
|||
setValidators(type: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
No description provided.