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 | 4 |
1 files changed, 4 insertions, 0 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 d5f5ff30f..a375072a0 100644 --- a/client/src/app/account/account-settings/account-settings.component.ts +++ b/client/src/app/account/account-settings/account-settings.component.ts | |||
@@ -14,6 +14,7 @@ export class AccountSettingsComponent implements OnInit { | |||
14 | @ViewChild('avatarfileInput') avatarfileInput | 14 | @ViewChild('avatarfileInput') avatarfileInput |
15 | 15 | ||
16 | user: User = null | 16 | user: User = null |
17 | userVideoQuotaUsed = 0 | ||
17 | 18 | ||
18 | constructor ( | 19 | constructor ( |
19 | private userService: UserService, | 20 | private userService: UserService, |
@@ -24,6 +25,9 @@ export class AccountSettingsComponent implements OnInit { | |||
24 | 25 | ||
25 | ngOnInit () { | 26 | ngOnInit () { |
26 | this.user = this.authService.getUser() | 27 | this.user = this.authService.getUser() |
28 | |||
29 | this.userService.getMyVideoQuotaUsed() | ||
30 | .subscribe(data => this.userVideoQuotaUsed = data.videoQuotaUsed) | ||
27 | } | 31 | } |
28 | 32 | ||
29 | getAvatarUrl () { | 33 | getAvatarUrl () { |