]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/account/account.component.ts
Client: add ability for user to change nsfw settings
[github/Chocobozzz/PeerTube.git] / client / src / app / account / account.component.ts
CommitLineData
629d8d6f 1import { Component, OnInit } from '@angular/core';
4b2f33f3 2import { FormBuilder, FormGroup } from '@angular/forms';
629d8d6f
C
3import { Router } from '@angular/router';
4
7ddd02c9
C
5import { NotificationsService } from 'angular2-notifications';
6
af5e743b
C
7import { AuthService } from '../core';
8import {
9 FormReactive,
10 User,
11 UserService,
12 USER_PASSWORD
13} from '../shared';
629d8d6f
C
14
15@Component({
16 selector: 'my-account',
af5e743b
C
17 templateUrl: './account.component.html',
18 styleUrls: [ './account.component.scss' ]
629d8d6f 19})
af5e743b
C
20export class AccountComponent implements OnInit {
21 user: User = null;
629d8d6f 22
af5e743b 23 constructor(private authService: AuthService) {}
4b2f33f3
C
24
25 ngOnInit() {
af5e743b 26 this.user = this.authService.getUser();
629d8d6f
C
27 }
28}