diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-08 12:53:09 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-08 12:53:09 +0100 |
commit | ce5496d6a31b9617aba67970f5dc135e73335234 (patch) | |
tree | b5d2578f4618b71632e92838c3ceae36aa102798 /client/src/app/account/account-settings/account-settings.component.ts | |
parent | 108af66140713c4beec681a71d360ab788226528 (diff) | |
download | PeerTube-ce5496d6a31b9617aba67970f5dc135e73335234.tar.gz PeerTube-ce5496d6a31b9617aba67970f5dc135e73335234.tar.zst PeerTube-ce5496d6a31b9617aba67970f5dc135e73335234.zip |
Support video quota on client
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 () { |