aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/funding-basket/funding-basket.component.ts
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-03-31 21:54:38 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-03-31 21:54:38 -0400
commitaef3df6f9eacfe37479046826a9ca14310b72456 (patch)
tree81ed3c6125d4564f48a0488dbf2611b537bd212f /ufund-ui/src/app/components/funding-basket/funding-basket.component.ts
parent6af14c6089f0fa0924740fb6089affc545f93a81 (diff)
downloadJellySolutions-aef3df6f9eacfe37479046826a9ca14310b72456.tar.gz
JellySolutions-aef3df6f9eacfe37479046826a9ca14310b72456.tar.bz2
JellySolutions-aef3df6f9eacfe37479046826a9ca14310b72456.zip
Apply css to funding basket
Diffstat (limited to '')
-rw-r--r--ufund-ui/src/app/components/funding-basket/funding-basket.component.ts6
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 24e2c0b..646ef35 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
@@ -39,7 +39,7 @@ export class FundingBasketComponent implements OnInit {
async checkout() {
this.isValid = true;
- for (let c of document.getElementById("funding-basket")?.querySelectorAll('.contribution')!) {
+ for (let c of document.querySelectorAll('.contribution')!) {
let contribution = c as HTMLInputElement;
contribution.setAttribute("style", "");
if (contribution.value == '' || contribution.valueAsNumber <= 0) {
@@ -59,7 +59,7 @@ export class FundingBasketComponent implements OnInit {
// }
// }
if (this.isValid) {
- for (let c of document.getElementById("funding-basket")?.querySelectorAll('.contribution')!) {
+ for (let c of document.querySelectorAll('.contribution')!) {
let contribution = c as HTMLInputElement;
let need = await firstValueFrom(this.cupboardService.getNeed(+contribution.id));
need.current += +contribution.value;
@@ -77,11 +77,11 @@ export class FundingBasketComponent implements OnInit {
}))
.subscribe((result) => {
if (result) {
- console.log('need updated successfully');
//this.needList?.refresh()
} else {
console.log('need update failed');
}
+ this.toastService.sendToast(ToastType.INFO, "Checkout successful");
});
}
}