aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/cupboard/cupboard.component.ts
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-04-04 21:55:12 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-04-04 21:55:12 -0400
commitb578584a1208178100bf90e8b06971772c7fc00f (patch)
tree6c2e5ee5fd3cc7e96e036704ebe3b1ba7cbfc9f5 /ufund-ui/src/app/components/cupboard/cupboard.component.ts
parent03431245f71385c5d641f66a7f63c1a22ab65210 (diff)
downloadJellySolutions-b578584a1208178100bf90e8b06971772c7fc00f.tar.gz
JellySolutions-b578584a1208178100bf90e8b06971772c7fc00f.tar.bz2
JellySolutions-b578584a1208178100bf90e8b06971772c7fc00f.zip
Fix many bugs and code clean up
Diffstat (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.ts')
-rw-r--r--ufund-ui/src/app/components/cupboard/cupboard.component.ts15
1 files changed, 0 insertions, 15 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.ts b/ufund-ui/src/app/components/cupboard/cupboard.component.ts
index 56fdd70..289618f 100644
--- a/ufund-ui/src/app/components/cupboard/cupboard.component.ts
+++ b/ufund-ui/src/app/components/cupboard/cupboard.component.ts
@@ -1,7 +1,6 @@
import {Component, OnInit, ViewChild} from '@angular/core';
import {CupboardService} from '../../services/cupboard.service';
import {Need} from '../../models/Need';
-import {userType} from '../../models/User';
import {catchError, of} from 'rxjs';
import {NeedListComponent} from '../need-list/need-list.component';
import {AuthService} from '../../services/auth.service';
@@ -138,20 +137,6 @@ export class CupboardComponent implements OnInit {
}
}
- isManager() {
- return this.authService.getCurrentUser()?.type === userType.MANAGER
- }
-
- isHelper() {
- return this.authService.getCurrentUser()?.type === userType.HELPER
- }
-
- inBasket(basket: Need[] | null, need: Need) {
- console.log(basket)
- console.log(need)
- return basket?.map(r => r.id).includes(need.id);
- }
-
protected readonly SortingAlgorithms = SortingAlgoArrays;
protected readonly Object = Object;
}