add max validator in spend allowance page
All checks were successful
Backend Build and Test / build (push) Successful in 2m43s
All checks were successful
Backend Build and Test / build (push) Successful in 2m43s
This commit is contained in:
parent
93e8a79bcc
commit
85f796814c
@ -30,6 +30,10 @@ export class SpendllowancePage {
|
||||
amount: ['', Validators.required],
|
||||
description: ['', Validators.required]
|
||||
});
|
||||
|
||||
this.allowanceService.getAllowanceById(this.goalId, this.userId).subscribe(allowance => {
|
||||
this.form.controls['amount'].addValidators([Validators.max(allowance.progress)]);
|
||||
});
|
||||
}
|
||||
|
||||
changeAllowance() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user