Add functionality to add allowance #101

Merged
Huffle merged 3 commits from AP-69 into main 2025-05-27 18:39:52 +02:00
Showing only changes of commit 85f796814c - Show all commits

View File

@ -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() {