diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-25 15:02:14 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-25 15:02:14 +0200 |
commit | 9397517a2618e121945273a7e8b1e511b20b5b99 (patch) | |
tree | 926ca26cf1af698e207ba57a531b647a53a6de04 /client/src | |
parent | e82cb08722f076aea4fdfcfa53940e7e4a0ac419 (diff) | |
download | PeerTube-9397517a2618e121945273a7e8b1e511b20b5b99.tar.gz PeerTube-9397517a2618e121945273a7e8b1e511b20b5b99.tar.zst PeerTube-9397517a2618e121945273a7e8b1e511b20b5b99.zip |
Deleting an abuse is only for admins
Diffstat (limited to 'client/src')
-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 | } |