Move abuse-list details into its own component
[oweals/peertube.git] / client / src / app / +admin / moderation / video-abuse-list / video-abuse-details.component.ts
1 import { Component, ViewEncapsulation, Input } from '@angular/core'
2 import { VideoAbuse } from '../../../../../../shared'
3 import { Account } from '@app/shared/account/account.model'
4
5 @Component({
6   selector: 'my-video-abuse-details',
7   templateUrl: './video-abuse-details.component.html',
8   styleUrls: [ '../moderation.component.scss' ]
9 })
10 export class VideoAbuseDetailsComponent {
11   @Input() videoAbuse: VideoAbuse
12
13   createByString (account: Account) {
14     return Account.CREATE_BY_STRING(account.name, account.host)
15   }
16 }