From ce5496d6a31b9617aba67970f5dc135e73335234 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 8 Jan 2018 12:53:09 +0100 Subject: Support video quota on client --- client/src/app/account/account-settings/account-settings.component.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/src/app/account/account-settings/account-settings.component.ts') 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 { @ViewChild('avatarfileInput') avatarfileInput user: User = null + userVideoQuotaUsed = 0 constructor ( private userService: UserService, @@ -24,6 +25,9 @@ export class AccountSettingsComponent implements OnInit { ngOnInit () { this.user = this.authService.getUser() + + this.userService.getMyVideoQuotaUsed() + .subscribe(data => this.userVideoQuotaUsed = data.videoQuotaUsed) } getAvatarUrl () { -- cgit v1.2.3