|
|
@@ -1,5 +1,7 @@
|
|
|
import { Component } from '@angular/core';
|
|
|
import { AuthService } from '@auth0/auth0-angular';
|
|
|
+import { PermissionService } from 'src/app/users/permission.service';
|
|
|
+import { UserValidationResult } from 'src/app/users/validate-user-result';
|
|
|
|
|
|
@Component({
|
|
|
selector: 'app-profile-page',
|
|
|
@@ -7,8 +9,14 @@ import { AuthService } from '@auth0/auth0-angular';
|
|
|
styleUrls: ['./profile-page.component.scss']
|
|
|
})
|
|
|
export class ProfilePageComponent {
|
|
|
+ public userValidationResult: UserValidationResult | null = null;
|
|
|
+
|
|
|
public constructor(
|
|
|
- public readonly authService: AuthService
|
|
|
+ public readonly authService: AuthService,
|
|
|
+ public readonly permissionService: PermissionService
|
|
|
) {
|
|
|
+ this.permissionService.userValidationResult.then(userValidationResult => {
|
|
|
+ this.userValidationResult = userValidationResult;
|
|
|
+ });
|
|
|
}
|
|
|
}
|