diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-03 09:30:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-03 09:30:13 +0200 |
commit | 348106f20cb0be6406b5b71bc0325b981ed74be9 (patch) | |
tree | 7303150f3deb7f1622fa59ae11449b79c5140368 /client/src/app/videos/+video-edit/video-add-components | |
parent | 769ac6c11fe3e8d79643032daa784a60116a6630 (diff) | |
download | PeerTube-348106f20cb0be6406b5b71bc0325b981ed74be9.tar.gz PeerTube-348106f20cb0be6406b5b71bc0325b981ed74be9.tar.zst PeerTube-348106f20cb0be6406b5b71bc0325b981ed74be9.zip |
Don't get quota twice
Diffstat (limited to 'client/src/app/videos/+video-edit/video-add-components')
-rw-r--r-- | client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts index c9ab35b1d..b59fb7335 100644 --- a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts +++ b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts | |||
@@ -68,10 +68,10 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy | |||
68 | super.ngOnInit() | 68 | super.ngOnInit() |
69 | 69 | ||
70 | this.userService.getMyVideoQuotaUsed() | 70 | this.userService.getMyVideoQuotaUsed() |
71 | .subscribe(data => this.userVideoQuotaUsed = data.videoQuotaUsed) | 71 | .subscribe(data => { |
72 | 72 | this.userVideoQuotaUsed = data.videoQuotaUsed | |
73 | this.userService.getMyVideoQuotaUsed() | 73 | this.userVideoQuotaUsedDaily = data.videoQuotaUsedDaily |
74 | .subscribe(data => this.userVideoQuotaUsedDaily = data.videoQuotaUsedDaily) | 74 | }) |
75 | } | 75 | } |
76 | 76 | ||
77 | ngOnDestroy () { | 77 | ngOnDestroy () { |