From 7a5396b65fcde8153c8eeae565bfecb7de37b23f Mon Sep 17 00:00:00 2001 From: Akash Keshav <112591754+domesticchores@users.noreply.github.com> Date: Tue, 18 Mar 2025 17:15:42 -0400 Subject: removed funding basket from admin users. -ak --- .../src/app/components/dashboard/dashboard.component.html | 2 +- ufund-ui/src/app/components/dashboard/dashboard.component.ts | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ufund-ui/src/app/components/dashboard/dashboard.component.html b/ufund-ui/src/app/components/dashboard/dashboard.component.html index 12ecc8b..a1151b7 100644 --- a/ufund-ui/src/app/components/dashboard/dashboard.component.html +++ b/ufund-ui/src/app/components/dashboard/dashboard.component.html @@ -1,4 +1,4 @@

Dashboard

- \ No newline at end of file + \ No newline at end of file diff --git a/ufund-ui/src/app/components/dashboard/dashboard.component.ts b/ufund-ui/src/app/components/dashboard/dashboard.component.ts index d3dc1d8..b9faefa 100644 --- a/ufund-ui/src/app/components/dashboard/dashboard.component.ts +++ b/ufund-ui/src/app/components/dashboard/dashboard.component.ts @@ -1,4 +1,6 @@ import { Component } from '@angular/core'; +import { UsersService } from '../../services/users.service'; +import { userType } from '../../models/User'; @Component({ selector: 'app-dashboard', @@ -7,6 +9,13 @@ import { Component } from '@angular/core'; styleUrl: './dashboard.component.css' }) export class DashboardComponent { - constructor() {} + constructor( + protected usersService: UsersService, + ) {} + + isManager() { + const type = this.usersService.getCurrentUser()?.type; + return type === ("MANAGER" as unknown as userType); + } } -- cgit v1.2.3