Add functionality to add allowance #101
@ -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