aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/account/account-settings/account-settings.component.ts
blob: cba2510009b0d5a4803b7a9ec9d4a2c61c19f7e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { Component, OnInit } from '@angular/core'
import { User } from '../../shared'
import { AuthService } from '../../core'

@Component({
  selector: 'my-account-settings',
  templateUrl: './account-settings.component.html',
  styleUrls: [ './account-settings.component.scss' ]
})
export class AccountSettingsComponent implements OnInit {
  user: User = null

  constructor (private authService: AuthService) {}

  ngOnInit () {
    this.user = this.authService.getUser()
  }

  getAvatarPath () {
    return this.user.getAvatarPath()
  }
}