aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-watch/video-watch.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-27 15:57:38 +0100
committerChocobozzz <me@florianbigard.com>2020-11-27 15:57:38 +0100
commit4ec25ae825f8dee44d948b38d8216f9a239ff7b3 (patch)
treebe3617c4060806c49e930af2f219e81640046388 /client/src/app/+videos/+video-watch/video-watch.component.ts
parent413b9729ee8218229a142dd5a79cd33d206b715f (diff)
downloadPeerTube-4ec25ae825f8dee44d948b38d8216f9a239ff7b3.tar.gz
PeerTube-4ec25ae825f8dee44d948b38d8216f9a239ff7b3.tar.zst
PeerTube-4ec25ae825f8dee44d948b38d8216f9a239ff7b3.zip
Refactor last PR
Diffstat (limited to 'client/src/app/+videos/+video-watch/video-watch.component.ts')
-rw-r--r--client/src/app/+videos/+video-watch/video-watch.component.ts6
1 files changed, 0 insertions, 6 deletions
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 bc047489e..66af9709d 100644
--- a/client/src/app/+videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/+videos/+video-watch/video-watch.component.ts
@@ -219,12 +219,6 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
219 return $localize`You need to be <a href="/login">logged in</a> to rate this video.` 219 return $localize`You need to be <a href="/login">logged in</a> to rate this video.`
220 } 220 }
221 221
222 getExactNumberOfViews () {
223 return (this.video.views >= 1000)
224 ? `${this.video.views} ${this.video.isLive ? $localize`viewers` : $localize`views`}`
225 : ''
226 }
227
228 showMoreDescription () { 222 showMoreDescription () {
229 if (this.completeVideoDescription === undefined) { 223 if (this.completeVideoDescription === undefined) {
230 return this.loadCompleteDescription() 224 return this.loadCompleteDescription()