blob: a0ad566afe8005e89681f8d2fa805021513d628c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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'
})
export class DashboardComponent {
constructor(
protected authService: AuthService,
) {}
isManager() {
const type = this.authService.getCurrentUser()?.type;
return type === ("MANAGER" as unknown as userType);
}
}
|