import { Component, Input } from '@angular/core'
import { durationToString } from '@app/helpers'
-import { Account } from '@app/shared/shared-main'
import { AbusePredefinedReasonsString } from '@shared/models'
import { ProcessedAbuse } from './processed-abuse.model'
export class AbuseDetailsComponent {
@Input() abuse: ProcessedAbuse
@Input() isAdminView: boolean
- @Input() baseRoute: string
private predefinedReasonsTranslations: { [key in AbusePredefinedReasonsString]: string }
label: this.predefinedReasonsTranslations[r]
}))
}
-
- switchToDefaultAvatar ($event: Event) {
- ($event.target as HTMLImageElement).src = Account.GET_DEFAULT_AVATAR_URL()
- }
}