]>
Commit | Line | Data |
---|---|---|
1 | import { Component, Input } from '@angular/core' | |
2 | import { Account } from '@app/shared/account/account.model' | |
3 | import { Actor } from '@app/shared/actor/actor.model' | |
4 | import { ProcessedVideoAbuse } from './video-abuse-list.component' | |
5 | ||
6 | @Component({ | |
7 | selector: 'my-video-abuse-details', | |
8 | templateUrl: './video-abuse-details.component.html', | |
9 | styleUrls: [ '../moderation.component.scss' ] | |
10 | }) | |
11 | export class VideoAbuseDetailsComponent { | |
12 | @Input() videoAbuse: ProcessedVideoAbuse | |
13 | ||
14 | switchToDefaultAvatar ($event: Event) { | |
15 | ($event.target as HTMLImageElement).src = Actor.GET_DEFAULT_AVATAR_URL() | |
16 | } | |
17 | } |