diff options
Diffstat (limited to 'client/src/app/shared/shared-moderation/server-blocklist.component.ts')
-rw-r--r-- | client/src/app/shared/shared-moderation/server-blocklist.component.ts | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/client/src/app/shared/shared-moderation/server-blocklist.component.ts b/client/src/app/shared/shared-moderation/server-blocklist.component.ts index 8f65cdb71..546fd53c3 100644 --- a/client/src/app/shared/shared-moderation/server-blocklist.component.ts +++ b/client/src/app/shared/shared-moderation/server-blocklist.component.ts | |||
@@ -2,7 +2,6 @@ import { SortMeta } from 'primeng/api' | |||
2 | import { Directive, OnInit, ViewChild } from '@angular/core' | 2 | import { Directive, OnInit, ViewChild } from '@angular/core' |
3 | import { Notifier, RestPagination, RestTable } from '@app/core' | 3 | import { Notifier, RestPagination, RestTable } from '@app/core' |
4 | import { BatchDomainsModalComponent } from '@app/shared/shared-moderation/batch-domains-modal.component' | 4 | import { BatchDomainsModalComponent } from '@app/shared/shared-moderation/batch-domains-modal.component' |
5 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
6 | import { ServerBlock } from '@shared/models' | 5 | import { ServerBlock } from '@shared/models' |
7 | import { BlocklistComponentType, BlocklistService } from './blocklist.service' | 6 | import { BlocklistComponentType, BlocklistService } from './blocklist.service' |
8 | 7 | ||
@@ -21,8 +20,7 @@ export class GenericServerBlocklistComponent extends RestTable implements OnInit | |||
21 | 20 | ||
22 | constructor ( | 21 | constructor ( |
23 | protected notifier: Notifier, | 22 | protected notifier: Notifier, |
24 | protected blocklistService: BlocklistService, | 23 | protected blocklistService: BlocklistService |
25 | protected i18n: I18n | ||
26 | ) { | 24 | ) { |
27 | super() | 25 | super() |
28 | } | 26 | } |
@@ -44,8 +42,8 @@ export class GenericServerBlocklistComponent extends RestTable implements OnInit | |||
44 | () => { | 42 | () => { |
45 | this.notifier.success( | 43 | this.notifier.success( |
46 | this.mode === BlocklistComponentType.Account | 44 | this.mode === BlocklistComponentType.Account |
47 | ? this.i18n('Instance {{host}} unmuted.', { host }) | 45 | ? $localize`Instance ${host} unmuted.` |
48 | : this.i18n('Instance {{host}} unmuted by your instance.', { host }) | 46 | : $localize`Instance ${host} unmuted by your instance.` |
49 | ) | 47 | ) |
50 | 48 | ||
51 | this.loadData() | 49 | this.loadData() |
@@ -67,8 +65,8 @@ export class GenericServerBlocklistComponent extends RestTable implements OnInit | |||
67 | () => { | 65 | () => { |
68 | this.notifier.success( | 66 | this.notifier.success( |
69 | this.mode === BlocklistComponentType.Account | 67 | this.mode === BlocklistComponentType.Account |
70 | ? this.i18n('Instance {{domain}} muted.', { domain }) | 68 | ? $localize`Instance ${domain} muted.` |
71 | : this.i18n('Instance {{domain}} muted by your instance.', { domain }) | 69 | : $localize`Instance ${domain} muted by your instance.` |
72 | ) | 70 | ) |
73 | 71 | ||
74 | this.loadData() | 72 | this.loadData() |