aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-03 09:30:13 +0200
committerChocobozzz <me@florianbigard.com>2018-09-03 09:30:13 +0200
commit348106f20cb0be6406b5b71bc0325b981ed74be9 (patch)
tree7303150f3deb7f1622fa59ae11449b79c5140368
parent769ac6c11fe3e8d79643032daa784a60116a6630 (diff)
downloadPeerTube-348106f20cb0be6406b5b71bc0325b981ed74be9.tar.gz
PeerTube-348106f20cb0be6406b5b71bc0325b981ed74be9.tar.zst
PeerTube-348106f20cb0be6406b5b71bc0325b981ed74be9.zip
Don't get quota twice
-rw-r--r--client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts8
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 () {