aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-25 15:02:14 +0200
committerChocobozzz <me@florianbigard.com>2022-10-25 15:02:14 +0200
commit9397517a2618e121945273a7e8b1e511b20b5b99 (patch)
tree926ca26cf1af698e207ba57a531b647a53a6de04 /client/src/app
parente82cb08722f076aea4fdfcfa53940e7e4a0ac419 (diff)
downloadPeerTube-9397517a2618e121945273a7e8b1e511b20b5b99.tar.gz
PeerTube-9397517a2618e121945273a7e8b1e511b20b5b99.tar.zst
PeerTube-9397517a2618e121945273a7e8b1e511b20b5b99.zip
Deleting an abuse is only for admins
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts7
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'
2import truncate from 'lodash-es/truncate' 2import truncate from 'lodash-es/truncate'
3import { SortMeta } from 'primeng/api' 3import { SortMeta } from 'primeng/api'
4import { Component, Input, OnInit, ViewChild } from '@angular/core' 4import { Component, Input, OnInit, ViewChild } from '@angular/core'
5import { DomSanitizer } from '@angular/platform-browser'
6import { ActivatedRoute, Router } from '@angular/router' 5import { ActivatedRoute, Router } from '@angular/router'
7import { ConfirmService, MarkdownService, Notifier, RestPagination, RestTable } from '@app/core' 6import { ConfirmService, MarkdownService, Notifier, RestPagination, RestTable } from '@app/core'
8import { Account, Actor, DropdownAction, Video, VideoService } from '@app/shared/shared-main' 7import { 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 }