From 080f7ce14770dd8b6bc893160afd357fada883b2 Mon Sep 17 00:00:00 2001 From: Gunther6070 Date: Tue, 18 Mar 2025 15:33:43 -0400 Subject: Removed old back button --- ufund-ui/src/app/components/dashboard/dashboard.component.ts | 3 --- 1 file changed, 3 deletions(-) (limited to 'ufund-ui/src/app/components/dashboard/dashboard.component.ts') diff --git a/ufund-ui/src/app/components/dashboard/dashboard.component.ts b/ufund-ui/src/app/components/dashboard/dashboard.component.ts index 48c5894..d3dc1d8 100644 --- a/ufund-ui/src/app/components/dashboard/dashboard.component.ts +++ b/ufund-ui/src/app/components/dashboard/dashboard.component.ts @@ -9,7 +9,4 @@ import { Component } from '@angular/core'; export class DashboardComponent { constructor() {} - back() { - window.history.back(); - } } -- cgit v1.2.3 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 --- ufund-ui/src/app/components/dashboard/dashboard.component.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'ufund-ui/src/app/components/dashboard/dashboard.component.ts') 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