diff options
Diffstat (limited to 'client/src/app/shared/shared-moderation/account-blocklist.component.ts')
-rw-r--r-- | client/src/app/shared/shared-moderation/account-blocklist.component.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/client/src/app/shared/shared-moderation/account-blocklist.component.ts b/client/src/app/shared/shared-moderation/account-blocklist.component.ts index a5a3c27cd..68928a2c2 100644 --- a/client/src/app/shared/shared-moderation/account-blocklist.component.ts +++ b/client/src/app/shared/shared-moderation/account-blocklist.component.ts | |||
@@ -1,8 +1,7 @@ | |||
1 | import { SortMeta } from 'primeng/api' | 1 | import { SortMeta } from 'primeng/api' |
2 | import { OnInit, Directive } from '@angular/core' | 2 | import { Directive, OnInit } from '@angular/core' |
3 | import { Notifier, RestPagination, RestTable } from '@app/core' | 3 | import { Notifier, RestPagination, RestTable } from '@app/core' |
4 | import { Actor } from '@app/shared/shared-main' | 4 | import { Actor } from '@app/shared/shared-main' |
5 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
6 | import { AccountBlock } from './account-block.model' | 5 | import { AccountBlock } from './account-block.model' |
7 | import { BlocklistComponentType, BlocklistService } from './blocklist.service' | 6 | import { BlocklistComponentType, BlocklistService } from './blocklist.service' |
8 | 7 | ||
@@ -19,8 +18,7 @@ export class GenericAccountBlocklistComponent extends RestTable implements OnIni | |||
19 | 18 | ||
20 | constructor ( | 19 | constructor ( |
21 | private notifier: Notifier, | 20 | private notifier: Notifier, |
22 | private blocklistService: BlocklistService, | 21 | private blocklistService: BlocklistService |
23 | private i18n: I18n | ||
24 | ) { | 22 | ) { |
25 | super() | 23 | super() |
26 | } | 24 | } |
@@ -46,8 +44,8 @@ export class GenericAccountBlocklistComponent extends RestTable implements OnIni | |||
46 | () => { | 44 | () => { |
47 | this.notifier.success( | 45 | this.notifier.success( |
48 | this.mode === BlocklistComponentType.Account | 46 | this.mode === BlocklistComponentType.Account |
49 | ? this.i18n('Account {{nameWithHost}} unmuted.', { nameWithHost: blockedAccount.nameWithHost }) | 47 | ? $localize`Account ${blockedAccount.nameWithHost} unmuted.` |
50 | : this.i18n('Account {{nameWithHost}} unmuted by your instance.', { nameWithHost: blockedAccount.nameWithHost }) | 48 | : $localize`Account ${blockedAccount.nameWithHost} unmuted by your instance.` |
51 | ) | 49 | ) |
52 | 50 | ||
53 | this.loadData() | 51 | this.loadData() |