diff options
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts index 32d3b0093..a3a71ae20 100644 --- a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts +++ b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts | |||
@@ -2,7 +2,6 @@ import * as debug from 'debug' | |||
2 | import truncate from 'lodash-es/truncate' | 2 | import truncate from 'lodash-es/truncate' |
3 | import { SortMeta } from 'primeng/api' | 3 | import { SortMeta } from 'primeng/api' |
4 | import { Component, Input, OnInit, ViewChild } from '@angular/core' | 4 | import { Component, Input, OnInit, ViewChild } from '@angular/core' |
5 | import { DomSanitizer } from '@angular/platform-browser' | ||
6 | import { ActivatedRoute, Router } from '@angular/router' | 5 | import { ActivatedRoute, Router } from '@angular/router' |
7 | import { ConfirmService, MarkdownService, Notifier, RestPagination, RestTable } from '@app/core' | 6 | import { ConfirmService, MarkdownService, Notifier, RestPagination, RestTable } from '@app/core' |
8 | import { Account, Actor, DropdownAction, Video, VideoService } from '@app/shared/shared-main' | 7 | import { Account, Actor, DropdownAction, Video, VideoService } from '@app/shared/shared-main' |
@@ -73,8 +72,7 @@ export class AbuseListTableComponent extends RestTable implements OnInit { | |||
73 | private videoService: VideoService, | 72 | private videoService: VideoService, |
74 | private videoBlocklistService: VideoBlockService, | 73 | private videoBlocklistService: VideoBlockService, |
75 | private confirmService: ConfirmService, | 74 | private confirmService: ConfirmService, |
76 | private markdownRenderer: MarkdownService, | 75 | private markdownRenderer: MarkdownService |
77 | private sanitizer: DomSanitizer | ||
78 | ) { | 76 | ) { |
79 | super() | 77 | super() |
80 | } | 78 | } |
@@ -274,7 +272,8 @@ export class AbuseListTableComponent extends RestTable implements OnInit { | |||
274 | }, | 272 | }, |
275 | { | 273 | { |
276 | label: $localize`Delete report`, | 274 | label: $localize`Delete report`, |
277 | handler: abuse => this.isAdminView() && this.removeAbuse(abuse) | 275 | handler: abuse => this.removeAbuse(abuse), |
276 | isDisplayed: () => this.isAdminView() | ||
278 | } | 277 | } |
279 | ] | 278 | ] |
280 | } | 279 | } |