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()
|
||||
|
||||
this.userService.getMyVideoQuotaUsed()
|
||||
.subscribe(data => this.userVideoQuotaUsed = data.videoQuotaUsed)
|
||||
|
||||
this.userService.getMyVideoQuotaUsed()
|
||||
.subscribe(data => this.userVideoQuotaUsedDaily = data.videoQuotaUsedDaily)
|
||||
.subscribe(data => {
|
||||
this.userVideoQuotaUsed = data.videoQuotaUsed
|
||||
this.userVideoQuotaUsedDaily = data.videoQuotaUsedDaily
|
||||
})
|
||||
}
|
||||
|
||||
ngOnDestroy () {
|
||||
|
|
Loading…
Reference in New Issue