Add likes/dislikes counts in the buttons
[oweals/peertube.git] / client / src / app / videos / +video-watch / video-watch.component.ts
index 0007331f8651d53a792b862ae7dc1cd68717439f..aacd697cff7f89b67d3712f9c2c9b47c2e914a26 100644 (file)
@@ -166,6 +166,12 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
     else this.setRating('dislike')
   }
 
+  getRatePopoverText () {
+    if (this.isUserLoggedIn()) return undefined
+
+    return this.i18n('You need to be connected to rate this content.')
+  }
+
   showMoreDescription () {
     if (this.completeVideoDescription === undefined) {
       return this.loadCompleteDescription()