aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video-caption
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-17 14:44:19 +0200
committerChocobozzz <me@florianbigard.com>2018-07-17 14:56:15 +0200
commit0f7fedc39857ebc0eb29182c1588a92b9adfb75a (patch)
treef1516e93a93d1042bbc4d14d10575b88cae6bba1 /client/src/app/shared/video-caption
parent4bdd9473fdecfa7e309e3c59b05b29d0a20ac397 (diff)
downloadPeerTube-0f7fedc39857ebc0eb29182c1588a92b9adfb75a.tar.gz
PeerTube-0f7fedc39857ebc0eb29182c1588a92b9adfb75a.tar.zst
PeerTube-0f7fedc39857ebc0eb29182c1588a92b9adfb75a.zip
Improve frontend accessibility
In particular checkboxes, likes/dislikes, share button, video thumbnails and help buttons
Diffstat (limited to 'client/src/app/shared/video-caption')
-rw-r--r--client/src/app/shared/video-caption/video-caption.service.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/video-caption/video-caption.service.ts b/client/src/app/shared/video-caption/video-caption.service.ts
index d1444902d..e835981dd 100644
--- a/client/src/app/shared/video-caption/video-caption.service.ts
+++ b/client/src/app/shared/video-caption/video-caption.service.ts
@@ -42,8 +42,6 @@ export class VideoCaptionService {
42 } 42 }
43 43
44 updateCaptions (videoId: number | string, videoCaptions: VideoCaptionEdit[]) { 44 updateCaptions (videoId: number | string, videoCaptions: VideoCaptionEdit[]) {
45 if (videoCaptions.length === 0) return of(true)
46
47 const observables: Observable<any>[] = [] 45 const observables: Observable<any>[] = []
48 46
49 for (const videoCaption of videoCaptions) { 47 for (const videoCaption of videoCaptions) {
@@ -58,6 +56,8 @@ export class VideoCaptionService {
58 } 56 }
59 } 57 }
60 58
59 if (observables.length === 0) return of(true)
60
61 return forkJoin(observables) 61 return forkJoin(observables)
62 } 62 }
63} 63}