diff options
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/shared-main/video/video.model.ts | 4 | ||||
-rw-r--r-- | client/src/app/shared/shared-video/video-views-counter.component.html | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-main/video/video.model.ts b/client/src/app/shared/shared-main/video/video.model.ts index b11316471..472a8c810 100644 --- a/client/src/app/shared/shared-main/video/video.model.ts +++ b/client/src/app/shared/shared-main/video/video.model.ts | |||
@@ -57,6 +57,9 @@ export class Video implements VideoServerModel { | |||
57 | url: string | 57 | url: string |
58 | 58 | ||
59 | views: number | 59 | views: number |
60 | // If live | ||
61 | viewers?: number | ||
62 | |||
60 | likes: number | 63 | likes: number |
61 | dislikes: number | 64 | dislikes: number |
62 | nsfw: boolean | 65 | nsfw: boolean |
@@ -150,6 +153,7 @@ export class Video implements VideoServerModel { | |||
150 | this.url = hash.url | 153 | this.url = hash.url |
151 | 154 | ||
152 | this.views = hash.views | 155 | this.views = hash.views |
156 | this.viewers = hash.viewers | ||
153 | this.likes = hash.likes | 157 | this.likes = hash.likes |
154 | this.dislikes = hash.dislikes | 158 | this.dislikes = hash.dislikes |
155 | 159 | ||
diff --git a/client/src/app/shared/shared-video/video-views-counter.component.html b/client/src/app/shared/shared-video/video-views-counter.component.html index a6679f74d..b19c8b137 100644 --- a/client/src/app/shared/shared-video/video-views-counter.component.html +++ b/client/src/app/shared/shared-video/video-views-counter.component.html | |||
@@ -4,6 +4,6 @@ | |||
4 | </ng-container> | 4 | </ng-container> |
5 | 5 | ||
6 | <ng-container i18n *ngIf="video.isLive"> | 6 | <ng-container i18n *ngIf="video.isLive"> |
7 | {video.views, plural, =1 {1 viewer} other {{{ video.views | myNumberFormatter }} viewers}} | 7 | {video.viewers, plural, =1 {1 viewer} other {{{ video.viewers | myNumberFormatter }} viewers}} |
8 | </ng-container> | 8 | </ng-container> |
9 | </span> | 9 | </span> |