changed video rating popover text with link to login page (#3168)
Co-authored-by: Rigel Kent <sendmemail@rigelk.eu>
This commit is contained in:
parent
dd1e2f2f96
commit
214ff6fa00
|
@ -59,9 +59,13 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="video-actions-rates">
|
<div class="video-actions-rates">
|
||||||
|
<ng-template #ratePopoverText>
|
||||||
|
<span [innerHTML]="getRatePopoverText()"></span>
|
||||||
|
</ng-template>
|
||||||
|
|
||||||
<div class="video-actions fullWidth justify-content-end">
|
<div class="video-actions fullWidth justify-content-end">
|
||||||
<button
|
<button
|
||||||
[ngbPopover]="getRatePopoverText()" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()" (keyup.enter)="setLike()"
|
[ngbPopover]="getRatePopoverText() && ratePopoverText" [ngClass]="{ 'activated': userRating === 'like' }" (click)="setLike()" (keyup.enter)="setLike()"
|
||||||
class="action-button action-button-like" [attr.aria-pressed]="userRating === 'like'" [attr.aria-label]="tooltipLike"
|
class="action-button action-button-like" [attr.aria-pressed]="userRating === 'like'" [attr.aria-label]="tooltipLike"
|
||||||
[ngbTooltip]="tooltipLike"
|
[ngbTooltip]="tooltipLike"
|
||||||
placement="bottom auto"
|
placement="bottom auto"
|
||||||
|
@ -71,7 +75,7 @@
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
[ngbPopover]="getRatePopoverText()" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()" (keyup.enter)="setDislike()"
|
[ngbPopover]="getRatePopoverText() && ratePopoverText" [ngClass]="{ 'activated': userRating === 'dislike' }" (click)="setDislike()" (keyup.enter)="setDislike()"
|
||||||
class="action-button action-button-dislike" [attr.aria-pressed]="userRating === 'dislike'" [attr.aria-label]="tooltipDislike"
|
class="action-button action-button-dislike" [attr.aria-pressed]="userRating === 'dislike'" [attr.aria-label]="tooltipDislike"
|
||||||
[ngbTooltip]="tooltipDislike"
|
[ngbTooltip]="tooltipDislike"
|
||||||
placement="bottom auto"
|
placement="bottom auto"
|
||||||
|
|
|
@ -577,10 +577,6 @@ my-video-comments {
|
||||||
|
|
||||||
.privacy-concerns {
|
.privacy-concerns {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
strong {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -189,7 +189,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
|
||||||
getRatePopoverText () {
|
getRatePopoverText () {
|
||||||
if (this.isUserLoggedIn()) return undefined
|
if (this.isUserLoggedIn()) return undefined
|
||||||
|
|
||||||
return $localize`You need to be connected to rate this content.`
|
return $localize`You need to be <a href="/login">logged in</a> to rate this video.`
|
||||||
}
|
}
|
||||||
|
|
||||||
showMoreDescription () {
|
showMoreDescription () {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user