aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/modal/video-report.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-12-05 11:05:54 +0100
committerChocobozzz <me@florianbigard.com>2018-12-05 11:05:54 +0100
commita1b2f876132e2c1fa8adb27bb333b2cd859dc82b (patch)
tree3576289f03efec6702991a3e6ad986acedb5fa95 /client/src/app/videos/+video-watch/modal/video-report.component.ts
parent9c53ef67e303d6c2742126670963db8cfc81e6d2 (diff)
downloadPeerTube-a1b2f876132e2c1fa8adb27bb333b2cd859dc82b.tar.gz
PeerTube-a1b2f876132e2c1fa8adb27bb333b2cd859dc82b.tar.zst
PeerTube-a1b2f876132e2c1fa8adb27bb333b2cd859dc82b.zip
Add information in report modal
Diffstat (limited to 'client/src/app/videos/+video-watch/modal/video-report.component.ts')
-rw-r--r--client/src/app/videos/+video-watch/modal/video-report.component.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-watch/modal/video-report.component.ts b/client/src/app/videos/+video-watch/modal/video-report.component.ts
index 297afb19f..023387984 100644
--- a/client/src/app/videos/+video-watch/modal/video-report.component.ts
+++ b/client/src/app/videos/+video-watch/modal/video-report.component.ts
@@ -33,6 +33,18 @@ export class VideoReportComponent extends FormReactive implements OnInit {
33 super() 33 super()
34 } 34 }
35 35
36 get currentHost () {
37 return window.location.host
38 }
39
40 get originHost () {
41 if (this.isRemoteVideo()) {
42 return this.video.account.host
43 }
44
45 return ''
46 }
47
36 ngOnInit () { 48 ngOnInit () {
37 this.buildForm({ 49 this.buildForm({
38 reason: this.videoAbuseValidatorsService.VIDEO_ABUSE_REASON 50 reason: this.videoAbuseValidatorsService.VIDEO_ABUSE_REASON
@@ -61,4 +73,8 @@ export class VideoReportComponent extends FormReactive implements OnInit {
61 err => this.notificationsService.error(this.i18n('Error'), err.message) 73 err => this.notificationsService.error(this.i18n('Error'), err.message)
62 ) 74 )
63 } 75 }
76
77 isRemoteVideo () {
78 return !this.video.isLocal
79 }
64} 80}