diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-09 15:29:05 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-09 15:29:05 +0100 |
commit | a22bfc3ebc9f80088035774c6cfca4bd5707acd3 (patch) | |
tree | bf1fe6c80e8948af183db3edd8bf6a197857e312 /client/src/app/videos/+video-edit/video-add.component.ts | |
parent | 378557ef2584e334392193b63bb2108fac6741fc (diff) | |
download | PeerTube-a22bfc3ebc9f80088035774c6cfca4bd5707acd3.tar.gz PeerTube-a22bfc3ebc9f80088035774c6cfca4bd5707acd3.tar.zst PeerTube-a22bfc3ebc9f80088035774c6cfca4bd5707acd3.zip |
Refractor peertube videojs plugin
Diffstat (limited to 'client/src/app/videos/+video-edit/video-add.component.ts')
-rw-r--r-- | client/src/app/videos/+video-edit/video-add.component.ts | 4 |
1 files changed, 3 insertions, 1 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 ' + |