aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/cupboard/cupboard.component.ts
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-03-31 21:54:48 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-03-31 21:54:48 -0400
commit43bab0db99649e118325cfece416f4f7b65a7d0c (patch)
tree4ab1fcca547841baf7258ddb459971bf0748445d /ufund-ui/src/app/components/cupboard/cupboard.component.ts
parentaef3df6f9eacfe37479046826a9ca14310b72456 (diff)
parent827831df4452449f11799c5e7daa2c6d1dd2ea90 (diff)
downloadJellySolutions-43bab0db99649e118325cfece416f4f7b65a7d0c.tar.gz
JellySolutions-43bab0db99649e118325cfece416f4f7b65a7d0c.tar.bz2
JellySolutions-43bab0db99649e118325cfece416f4f7b65a7d0c.zip
Merge remote-tracking branch 'origin/css' into css
Diffstat (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.ts')
-rw-r--r--ufund-ui/src/app/components/cupboard/cupboard.component.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.ts b/ufund-ui/src/app/components/cupboard/cupboard.component.ts
index fff8760..662def4 100644
--- a/ufund-ui/src/app/components/cupboard/cupboard.component.ts
+++ b/ufund-ui/src/app/components/cupboard/cupboard.component.ts
@@ -100,11 +100,11 @@ export class CupboardComponent implements OnInit {
this.cupboardService.updateNeed(need.id, need)
.pipe(catchError((ex, _) => {
if (ex.status == 500) {
- this.toastService.sendToast(ToastType.INFO, 'Fields cannot be blank');
+ this.toastService.sendToast(ToastType.ERROR, 'Fields cannot be blank');
} else if (ex.status == 400) {
- this.toastService.sendToast(ToastType.INFO, ex.error);
+ this.toastService.sendToast(ToastType.ERROR, ex.error);
} else {
- this.toastService.sendToast(ToastType.INFO, "Error on creating need");
+ this.toastService.sendToast(ToastType.ERROR, "Error on creating need");
}
return of()
}))
@@ -139,11 +139,11 @@ export class CupboardComponent implements OnInit {
this.cupboardService.createNeed(need)
.pipe(catchError((ex, _) => {
if (ex.status == 500) {
- this.toastService.sendToast(ToastType.INFO, "Fields cannot be blank");
+ this.toastService.sendToast(ToastType.ERROR, "Fields cannot be blank");
} else if (ex.status == 400) {
- this.toastService.sendToast(ToastType.INFO, ex.error);
+ this.toastService.sendToast(ToastType.ERROR, ex.error);
} else {
- this.toastService.sendToast(ToastType.INFO, "Error on creating need");
+ this.toastService.sendToast(ToastType.ERROR, "Error on creating need");
}
return of()
}))