From 3cfa817672657df18260ece5b354efa0f3b6e317 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 17 Nov 2021 11:18:49 +0100 Subject: Add ability to bulk block videos --- .../src/app/shared/shared-abuse-list/abuse-list-table.component.html | 4 ---- client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'client/src/app/shared/shared-abuse-list') diff --git a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html index d0eef7d4b..0d75a21d7 100644 --- a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html +++ b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.html @@ -77,10 +77,6 @@
-
- Deleted -
-
{{ abuse.video.name }} 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 b902726fa..08cf297cc 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 @@ -338,7 +338,7 @@ export class AbuseListTableComponent extends RestTable implements OnInit { label: $localize`Block video`, isDisplayed: abuse => abuse.video && !abuse.video.deleted && !abuse.video.blacklisted, handler: abuse => { - this.videoBlocklistService.blockVideo(abuse.video.id, undefined, abuse.video.channel.isLocal) + this.videoBlocklistService.blockVideo([ { videoId: abuse.video.id, unfederate: abuse.video.channel.isLocal } ]) .subscribe({ next: () => { this.notifier.success($localize`Video blocked.`) -- cgit v1.2.3