aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/shared/user-email-info.component.ts
blob: e33948b60556b776faf0060ac0b8815947fc3352 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { Component, Input } from '@angular/core'
import { User, UserRegistration } from '@shared/models/users'

@Component({
  selector: 'my-user-email-info',
  templateUrl: './user-email-info.component.html',
  styleUrls: [ './user-email-info.component.scss' ]
})
export class UserEmailInfoComponent {
  @Input() entry: User | UserRegistration
  @Input() requiresEmailVerification: boolean

  getTitle () {
    if (this.entry.emailVerified) {
      return $localize`User email has been verified`
    }

    return $localize`User email hasn't been verified`
  }
}