mirror of https://github.com/Chocobozzz/PeerTube
Don't get quota twice
parent
769ac6c11f
commit
348106f20c
|
@ -68,10 +68,10 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy
|
||||||
super.ngOnInit()
|
super.ngOnInit()
|
||||||
|
|
||||||
this.userService.getMyVideoQuotaUsed()
|
this.userService.getMyVideoQuotaUsed()
|
||||||
.subscribe(data => this.userVideoQuotaUsed = data.videoQuotaUsed)
|
.subscribe(data => {
|
||||||
|
this.userVideoQuotaUsed = data.videoQuotaUsed
|
||||||
this.userService.getMyVideoQuotaUsed()
|
this.userVideoQuotaUsedDaily = data.videoQuotaUsedDaily
|
||||||
.subscribe(data => this.userVideoQuotaUsedDaily = data.videoQuotaUsedDaily)
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy () {
|
ngOnDestroy () {
|
||||||
|
|
Loading…
Reference in New Issue