aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch
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/videos/+video-watch
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/videos/+video-watch')
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.html12
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts2
2 files changed, 7 insertions, 7 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch.component.html b/client/src/app/videos/+video-watch/video-watch.component.html
index 21f8f5534..e7e9f367c 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.html
+++ b/client/src/app/videos/+video-watch/video-watch.component.html
@@ -48,15 +48,15 @@
48 <div class="video-actions-rates"> 48 <div class="video-actions-rates">
49 <div class="video-actions"> 49 <div class="video-actions">
50 <div 50 <div
51 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()" 51 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()"
52 class="action-button action-button-like" 52 class="action-button action-button-like" role="button" [attr.aria-pressed]="userRating === 'like'"
53 > 53 >
54 <span class="icon icon-like" i18n-title title="Like this video" ></span> 54 <span class="icon icon-like" i18n-title title="Like this video" ></span>
55 </div> 55 </div>
56 56
57 <div 57 <div
58 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()" 58 *ngIf="isUserLoggedIn()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()"
59 class="action-button action-button-dislike" 59 class="action-button action-button-dislike" role="button" [attr.aria-pressed]="userRating === 'dislike'"
60 > 60 >
61 <span class="icon icon-dislike" i18n-title title="Dislike this video"></span> 61 <span class="icon icon-dislike" i18n-title title="Dislike this video"></span>
62 </div> 62 </div>
@@ -66,12 +66,12 @@
66 <span class="icon-text" i18n>Support</span> 66 <span class="icon-text" i18n>Support</span>
67 </div> 67 </div>
68 68
69 <div (click)="showShareModal()" class="action-button action-button-share"> 69 <div (click)="showShareModal()" class="action-button action-button-share" role="button">
70 <span class="icon icon-share"></span> 70 <span class="icon icon-share"></span>
71 <span class="icon-text" i18n>Share</span> 71 <span class="icon-text" i18n>Share</span>
72 </div> 72 </div>
73 73
74 <div class="action-more" dropdown dropup="true" placement="right"> 74 <div class="action-more" dropdown dropup="true" placement="right" role="button">
75 <div class="action-button" dropdownToggle> 75 <div class="action-button" dropdownToggle>
76 <span class="icon icon-more"></span> 76 <span class="icon icon-more"></span>
77 </div> 77 </div>
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 43afbae1a..4f8549e8f 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -314,7 +314,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
314 if (!errorMessage) return 314 if (!errorMessage) return
315 315
316 // Display a message in the video player instead of a notification 316 // Display a message in the video player instead of a notification
317 if (errorMessage.indexOf('http error') !== -1) { 317 if (errorMessage.indexOf('from xs param') !== -1) {
318 this.flushPlayer() 318 this.flushPlayer()
319 this.remoteServerDown = true 319 this.remoteServerDown = true
320 return 320 return