import { Component , Input } from '@angular/core' ; import { MatDialogRef } from '@angular/material' ; import { User } from '../../../models/User' ; import { UserService } from '../../services/user.service' ; @ Component ( { selector : 'app-user-profile-dialog' , templateUrl : './user-profile-dialog.component.html' , styleUrls : [ './user-profile-dialog.component.scss' ] } ) export class UserProfileDialog { @ Input ( ) user : User ; constructor ( public dialogRef , public userService ) { } canSeeUid ( ) { return ( this . userService . isAdmin ( ) || this . userService . isTeacher ( ) ) && this . user . uid ; } }