diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2025-03-26 15:38:46 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2025-03-26 15:38:46 -0400 |
commit | ea13cf6ab3b71ff5e83fca876ec71fec1f7b00ae (patch) | |
tree | 4450553037eaec406d8e0bb2c3a4200b188f01ea /ufund-ui/src/app/components/dashboard/dashboard.component.ts | |
parent | 5f03e80712f7a18370b5118fde5327bde1b6fbbf (diff) | |
download | JellySolutions-ea13cf6ab3b71ff5e83fca876ec71fec1f7b00ae.tar.gz JellySolutions-ea13cf6ab3b71ff5e83fca876ec71fec1f7b00ae.tar.bz2 JellySolutions-ea13cf6ab3b71ff5e83fca876ec71fec1f7b00ae.zip |
Make frontend work with the new backend checkout system
Diffstat (limited to '')
-rw-r--r-- | ufund-ui/src/app/components/dashboard/dashboard.component.ts | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ufund-ui/src/app/components/dashboard/dashboard.component.ts b/ufund-ui/src/app/components/dashboard/dashboard.component.ts index b9faefa..a0ad566 100644 --- a/ufund-ui/src/app/components/dashboard/dashboard.component.ts +++ b/ufund-ui/src/app/components/dashboard/dashboard.component.ts @@ -1,21 +1,21 @@ -import { Component } from '@angular/core'; -import { UsersService } from '../../services/users.service'; -import { userType } from '../../models/User'; +import {Component} from '@angular/core'; +import {userType} from '../../models/User'; +import {AuthService} from '../../services/auth.service'; @Component({ - selector: 'app-dashboard', - standalone: false, - templateUrl: './dashboard.component.html', - styleUrl: './dashboard.component.css' + selector: 'app-dashboard', + standalone: false, + templateUrl: './dashboard.component.html', + styleUrl: './dashboard.component.css' }) export class DashboardComponent { constructor( - protected usersService: UsersService, + protected authService: AuthService, ) {} isManager() { - const type = this.usersService.getCurrentUser()?.type; + const type = this.authService.getCurrentUser()?.type; return type === ("MANAGER" as unknown as userType); - } + } } |