aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-05-05 13:47:51 +0200
committerChocobozzz <me@florianbigard.com>2022-05-05 13:47:51 +0200
commitf18a060a83d7053897173b2a24fb7984893131c7 (patch)
tree3480abf42239258d379166740f142a3cc0cb361a /client/src
parentb2d03a83315e52d32c6f4a92cad9cd682470099c (diff)
downloadPeerTube-f18a060a83d7053897173b2a24fb7984893131c7.tar.gz
PeerTube-f18a060a83d7053897173b2a24fb7984893131c7.tar.zst
PeerTube-f18a060a83d7053897173b2a24fb7984893131c7.zip
Remove comments, rates and views from stats
It prevent us to apply date filters
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/+stats/video/video-stats.component.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/client/src/app/+stats/video/video-stats.component.ts b/client/src/app/+stats/video/video-stats.component.ts
index 09ed37799..a5435fe23 100644
--- a/client/src/app/+stats/video/video-stats.component.ts
+++ b/client/src/app/+stats/video/video-stats.component.ts
@@ -137,15 +137,11 @@ export class VideoStatsComponent implements OnInit {
137 this.overallStatCards = [ 137 this.overallStatCards = [
138 { 138 {
139 label: $localize`Views`, 139 label: $localize`Views`,
140 value: this.numberFormatter.transform(overallStats.views) 140 value: this.numberFormatter.transform(this.video.views)
141 },
142 {
143 label: $localize`Comments`,
144 value: this.numberFormatter.transform(overallStats.comments)
145 }, 141 },
146 { 142 {
147 label: $localize`Likes`, 143 label: $localize`Likes`,
148 value: this.numberFormatter.transform(overallStats.likes) 144 value: this.numberFormatter.transform(this.video.likes)
149 }, 145 },
150 { 146 {
151 label: $localize`Average watch time`, 147 label: $localize`Average watch time`,