<div class="modal-body">
+ <div i18n class="information">
+ Your report will be sent to moderators of {{ currentHost }}.
+ <ng-container *ngIf="isRemoteVideo()"> It will be forwarded to origin instance {{ originHost }} too.</ng-container>
+ </div>
+
<form novalidate [formGroup]="form" (ngSubmit)="report()">
<div class="form-group">
<textarea i18n-placeholder placeholder="Reason..." formControlName="reason" [ngClass]="{ 'input-error': formErrors['reason'] }">
super()
}
+ get currentHost () {
+ return window.location.host
+ }
+
+ get originHost () {
+ if (this.isRemoteVideo()) {
+ return this.video.account.host
+ }
+
+ return ''
+ }
+
ngOnInit () {
this.buildForm({
reason: this.videoAbuseValidatorsService.VIDEO_ABUSE_REASON
err => this.notificationsService.error(this.i18n('Error'), err.message)
)
}
+
+ isRemoteVideo () {
+ return !this.video.isLocal
+ }
}