diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2025-03-17 23:16:29 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2025-03-17 23:16:29 -0400 |
commit | 68515441acd77d3356e8ec8b58700411661fec13 (patch) | |
tree | f3e08e4eecb5c06c8149d56ca08253a3c2d92607 /ufund-ui/src/app/components/funding-basket/funding-basket.component.ts | |
parent | 7a5c5073e9e410b3ccc3ab7902a0d6f558277c7d (diff) | |
parent | 275a6062007380389b7a8f1b8958e8033b4f0925 (diff) | |
download | JellySolutions-68515441acd77d3356e8ec8b58700411661fec13.tar.gz JellySolutions-68515441acd77d3356e8ec8b58700411661fec13.tar.bz2 JellySolutions-68515441acd77d3356e8ec8b58700411661fec13.zip |
Merge remote-tracking branch 'refs/remotes/origin/main' into funding_basket
# Conflicts:
# ufund-ui/src/app/components/funding-basket/funding-basket.component.ts
Diffstat (limited to '')
-rw-r--r-- | ufund-ui/src/app/components/funding-basket/funding-basket.component.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts b/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts index 1dcebc5..31f2982 100644 --- a/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts +++ b/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts @@ -22,7 +22,7 @@ export class FundingBasketComponent implements private router: Router, private usersService: UsersService ) {} - + ngOnInit(): void { if (!this.usersService.getCurrentUser()) { this.router.navigate(['/login'], {queryParams: {redir: this.router.url}}); @@ -47,7 +47,7 @@ export class FundingBasketComponent implements isInBasket(need: Need): boolean { return this.basket.some(n => n.id == need.id); } - + addNeed(need: Need, quantity: number=1): void { if (this.user && !this.isInBasket(need)) { this.basket.push(need); @@ -57,7 +57,7 @@ export class FundingBasketComponent implements } this.needCount++; } - + removeNeed(need: Need, quantity:number=1): void { if (this.user && this.isInBasket(need)) { this.need_quantity[need.id] -= quantity; |