aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-09 15:29:05 +0100
committerChocobozzz <me@florianbigard.com>2018-01-09 15:29:05 +0100
commita22bfc3ebc9f80088035774c6cfca4bd5707acd3 (patch)
treebf1fe6c80e8948af183db3edd8bf6a197857e312 /client/src/app
parent378557ef2584e334392193b63bb2108fac6741fc (diff)
downloadPeerTube-a22bfc3ebc9f80088035774c6cfca4bd5707acd3.tar.gz
PeerTube-a22bfc3ebc9f80088035774c6cfca4bd5707acd3.tar.zst
PeerTube-a22bfc3ebc9f80088035774c6cfca4bd5707acd3.zip
Refractor peertube videojs plugin
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/videos/+video-edit/video-add.component.ts4
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts1
2 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/videos/+video-edit/video-add.component.ts b/client/src/app/videos/+video-edit/video-add.component.ts
index a86d9d3c2..d0d17fa86 100644
--- a/client/src/app/videos/+video-edit/video-add.component.ts
+++ b/client/src/app/videos/+video-edit/video-add.component.ts
@@ -95,8 +95,10 @@ export class VideoAddComponent extends FormReactive implements OnInit {
95 95
96 uploadFirstStep () { 96 uploadFirstStep () {
97 const videofile = this.videofileInput.nativeElement.files[0] 97 const videofile = this.videofileInput.nativeElement.files[0]
98 if (!videofile) return
99
98 const videoQuota = this.authService.getUser().videoQuota 100 const videoQuota = this.authService.getUser().videoQuota
99 if ((this.userVideoQuotaUsed + videofile.size) > videoQuota) { 101 if (videoQuota !== -1 && (this.userVideoQuotaUsed + videofile.size) > videoQuota) {
100 const bytePipes = new BytesPipe() 102 const bytePipes = new BytesPipe()
101 103
102 const msg = 'Your video quota is exceeded with this video ' + 104 const msg = 'Your video quota is exceeded with this video ' +
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts
index a27cacba3..6f5fe0b97 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -326,7 +326,6 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
326 peertube: { 326 peertube: {
327 videoFiles: this.video.files, 327 videoFiles: this.video.files,
328 playerElement: this.playerElement, 328 playerElement: this.playerElement,
329 autoplay: this.isAutoplay(),
330 peerTubeLink: false 329 peerTubeLink: false
331 } 330 }
332 } 331 }