1
- import { AsyncPipe , NgIf } from '@angular/common' ;
1
+ import { AsyncPipe } from '@angular/common' ;
2
2
import { Component , Inject , OnInit } from '@angular/core' ;
3
3
import { IsActiveMatchOptions } from '@angular/router' ;
4
4
@@ -19,8 +19,6 @@ import { AuthService } from '@app/features/auth/services/auth.service';
19
19
import { AlertCode } from '@app/features/portal/enums/alert-code.enum' ;
20
20
import { PortalResource } from '@app/features/portal/portal-resource.service' ;
21
21
import { ProfileRoutes } from '@app/features/profile/profile.routes' ;
22
- import { PermissionsService } from '@app/modules/permissions/permissions.service' ;
23
- import { Role } from '@app/shared/enums/roles.enum' ;
24
22
25
23
import { FeedbackButtonComponent } from '../../../../shared/components/feedback-button/feedback-button.component' ;
26
24
import { NavMenuComponent } from '../navbar-menu/nav-menu' ;
@@ -30,7 +28,7 @@ import { NavMenuComponent } from '../navbar-menu/nav-menu';
30
28
templateUrl : './portal-dashboard.component.html' ,
31
29
styleUrls : [ './portal-dashboard.component.scss' ] ,
32
30
standalone : true ,
33
- imports : [ AsyncPipe , NavMenuComponent , FeedbackButtonComponent , NgIf ] ,
31
+ imports : [ AsyncPipe , NavMenuComponent , FeedbackButtonComponent ] ,
34
32
} )
35
33
export class PortalDashboardComponent implements IDashboard , OnInit {
36
34
public logoutRedirectUrl : string ;
@@ -50,7 +48,6 @@ export class PortalDashboardComponent implements IDashboard, OnInit {
50
48
private partyService : PartyService ,
51
49
private resource : PortalResource ,
52
50
private dataService : CommonDataService ,
53
- private readonly permissionsService : PermissionsService ,
54
51
) {
55
52
this . logoutRedirectUrl = `${ this . config . applicationUrl } /${ this . config . routes . auth } ` ;
56
53
this . headerConfig = { theme : 'light' , allowMobileToggle : true } ;
@@ -68,10 +65,6 @@ export class PortalDashboardComponent implements IDashboard, OnInit {
68
65
this . authService . logout ( this . logoutRedirectUrl ) ;
69
66
}
70
67
71
- public featureFlag ( ) : boolean {
72
- return this . permissionsService . hasRole ( [ Role . FEATURE_PIDP_DEMO ] ) ;
73
- }
74
-
75
68
public ngOnInit ( ) : void {
76
69
this . alertStatusCheck ( ) ;
77
70
this . dataService . pushEvent . subscribe ( ( ) => this . alertStatusCheck ( ) ) ;
0 commit comments