diff options
Diffstat (limited to 'client')
3 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 076c6205f..0d1768aa9 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.html +++ b/client/src/app/+videos/+video-watch/video-watch.component.html | |||
@@ -59,9 +59,13 @@ | |||
59 | </div> | 59 | </div> |
60 | 60 | ||
61 | <div class="video-actions-rates"> | 61 | <div class="video-actions-rates"> |
62 | <ng-template #ratePopoverText> | ||
63 | <span [innerHTML]="getRatePopoverText()"></span> | ||
64 | </ng-template> | ||
65 | |||
62 | <div class="video-actions fullWidth justify-content-end"> | 66 | <div class="video-actions fullWidth justify-content-end"> |
63 | <button | 67 | <button |
64 | [ngbPopover]="getRatePopoverText()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()" (keyup.enter)="setLike()" | 68 | [ngbPopover]="getRatePopoverText() && ratePopoverText" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()" (keyup.enter)="setLike()" |
65 | class="action-button action-button-like" [attr.aria-pressed]="userRating === 'like'" [attr.aria-label]="tooltipLike" | 69 | class="action-button action-button-like" [attr.aria-pressed]="userRating === 'like'" [attr.aria-label]="tooltipLike" |
66 | [ngbTooltip]="tooltipLike" | 70 | [ngbTooltip]="tooltipLike" |
67 | placement="bottom auto" | 71 | placement="bottom auto" |
@@ -71,7 +75,7 @@ | |||
71 | </button> | 75 | </button> |
72 | 76 | ||
73 | <button | 77 | <button |
74 | [ngbPopover]="getRatePopoverText()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()" (keyup.enter)="setDislike()" | 78 | [ngbPopover]="getRatePopoverText() && ratePopoverText" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()" (keyup.enter)="setDislike()" |
75 | class="action-button action-button-dislike" [attr.aria-pressed]="userRating === 'dislike'" [attr.aria-label]="tooltipDislike" | 79 | class="action-button action-button-dislike" [attr.aria-pressed]="userRating === 'dislike'" [attr.aria-label]="tooltipDislike" |
76 | [ngbTooltip]="tooltipDislike" | 80 | [ngbTooltip]="tooltipDislike" |
77 | placement="bottom auto" | 81 | placement="bottom auto" |
diff --git a/client/src/app/+videos/+video-watch/video-watch.component.scss b/client/src/app/+videos/+video-watch/video-watch.component.scss index 9c7f9a462..b2bd04cf3 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.scss +++ b/client/src/app/+videos/+video-watch/video-watch.component.scss | |||
@@ -577,10 +577,6 @@ my-video-comments { | |||
577 | 577 | ||
578 | .privacy-concerns { | 578 | .privacy-concerns { |
579 | width: 100%; | 579 | width: 100%; |
580 | |||
581 | strong { | ||
582 | display: none; | ||
583 | } | ||
584 | } | 580 | } |
585 | } | 581 | } |
586 | 582 | ||
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 8e6d62a09..fde32dc74 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch.component.ts | |||
@@ -189,7 +189,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
189 | getRatePopoverText () { | 189 | getRatePopoverText () { |
190 | if (this.isUserLoggedIn()) return undefined | 190 | if (this.isUserLoggedIn()) return undefined |
191 | 191 | ||
192 | return $localize`You need to be connected to rate this content.` | 192 | return $localize`You need to be <a href="/login">logged in</a> to rate this video.` |
193 | } | 193 | } |
194 | 194 | ||
195 | showMoreDescription () { | 195 | showMoreDescription () { |