From 20b40b195aa89778a8b6dc22f76a2ea76ef406a8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 28 Feb 2018 09:49:40 +0100 Subject: Handle user rates in real time --- client/src/app/videos/+video-watch/video-watch.component.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/src/app/videos/+video-watch') 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 c9bfa7ffb..3965bade8 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts @@ -411,6 +411,9 @@ export class VideoWatchComponent implements OnInit, OnDestroy { this.video.likes += likesToIncrement this.video.dislikes += dislikesToIncrement + this.video.buildLikeAndDislikePercents() + + this.setVideoLikesBarTooltipText() } private updateOtherVideosDisplayed () { -- cgit v1.2.3