diff options
Diffstat (limited to 'client/src/app/account/account-settings/account-settings.component.ts')
-rw-r--r-- | client/src/app/account/account-settings/account-settings.component.ts | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/client/src/app/account/account-settings/account-settings.component.ts b/client/src/app/account/account-settings/account-settings.component.ts index 3e03085ce..d5f5ff30f 100644 --- a/client/src/app/account/account-settings/account-settings.component.ts +++ b/client/src/app/account/account-settings/account-settings.component.ts | |||
@@ -1,9 +1,8 @@ | |||
1 | import { HttpEventType, HttpResponse } from '@angular/common/http' | ||
2 | import { Component, OnInit, ViewChild } from '@angular/core' | 1 | import { Component, OnInit, ViewChild } from '@angular/core' |
3 | import { NotificationsService } from 'angular2-notifications' | 2 | import { NotificationsService } from 'angular2-notifications' |
4 | import { VideoPrivacy } from '../../../../../shared/models/videos' | ||
5 | import { User } from '../../shared' | ||
6 | import { AuthService } from '../../core' | 3 | import { AuthService } from '../../core' |
4 | import { ServerService } from '../../core/server' | ||
5 | import { User } from '../../shared' | ||
7 | import { UserService } from '../../shared/users' | 6 | import { UserService } from '../../shared/users' |
8 | 7 | ||
9 | @Component({ | 8 | @Component({ |
@@ -19,6 +18,7 @@ export class AccountSettingsComponent implements OnInit { | |||
19 | constructor ( | 18 | constructor ( |
20 | private userService: UserService, | 19 | private userService: UserService, |
21 | private authService: AuthService, | 20 | private authService: AuthService, |
21 | private serverService: ServerService, | ||
22 | private notificationsService: NotificationsService | 22 | private notificationsService: NotificationsService |
23 | ) {} | 23 | ) {} |
24 | 24 | ||
@@ -47,4 +47,12 @@ export class AccountSettingsComponent implements OnInit { | |||
47 | err => this.notificationsService.error('Error', err.message) | 47 | err => this.notificationsService.error('Error', err.message) |
48 | ) | 48 | ) |
49 | } | 49 | } |
50 | |||
51 | get maxAvatarSize () { | ||
52 | return this.serverService.getConfig().avatar.file.size.max | ||
53 | } | ||
54 | |||
55 | get avatarExtensions () { | ||
56 | return this.serverService.getConfig().avatar.file.extensions.join(',') | ||
57 | } | ||
50 | } | 58 | } |