X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-abuse-list%2Fabuse-details.component.ts;h=e8ce7e678338a5c5182491cba0c4d5c6bf09ba11;hb=205e4f56f3da1f787f1bc2cdfcc39948a99a16b1;hp=0e872079a58124e5fc83ee80514f3c093eda5488;hpb=830c762bb67ff150ebaef2e603513ce7dd48faa2;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-abuse-list/abuse-details.component.ts b/client/src/app/shared/shared-abuse-list/abuse-details.component.ts index 0e872079a..e8ce7e678 100644 --- a/client/src/app/shared/shared-abuse-list/abuse-details.component.ts +++ b/client/src/app/shared/shared-abuse-list/abuse-details.component.ts @@ -1,7 +1,6 @@ import { Component, Input } from '@angular/core' import { durationToString } from '@app/helpers' -import { Actor } from '@app/shared/shared-main' -import { I18n } from '@ngx-translate/i18n-polyfill' +import { Account } from '@app/shared/shared-main' import { AbusePredefinedReasonsString } from '@shared/models' import { ProcessedAbuse } from './processed-abuse.model' @@ -17,18 +16,16 @@ export class AbuseDetailsComponent { private predefinedReasonsTranslations: { [key in AbusePredefinedReasonsString]: string } - constructor ( - private i18n: I18n - ) { + constructor () { this.predefinedReasonsTranslations = { - violentOrRepulsive: this.i18n('Violent or Repulsive'), - hatefulOrAbusive: this.i18n('Hateful or Abusive'), - spamOrMisleading: this.i18n('Spam or Misleading'), - privacy: this.i18n('Privacy'), - rights: this.i18n('Copyright'), - serverRules: this.i18n('Server rules'), - thumbnails: this.i18n('Thumbnails'), - captions: this.i18n('Captions') + violentOrRepulsive: $localize`Violent or Repulsive`, + hatefulOrAbusive: $localize`Hateful or Abusive`, + spamOrMisleading: $localize`Spam or Misleading`, + privacy: $localize`Privacy`, + rights: $localize`Copyright`, + serverRules: $localize`Server rules`, + thumbnails: $localize`Thumbnails`, + captions: $localize`Captions` } } @@ -48,8 +45,4 @@ export class AbuseDetailsComponent { label: this.predefinedReasonsTranslations[r] })) } - - switchToDefaultAvatar ($event: Event) { - ($event.target as HTMLImageElement).src = Actor.GET_DEFAULT_AVATAR_URL() - } }