From 3fc43fa0b0e81ff972526057c9d63e0aaa012aaa Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 25 Oct 2022 14:50:54 +0200 Subject: [PATCH] Reload data when deleting a blocked video --- .../video-block-list/video-block-list.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts index 8d67e9beb..911d2418e 100644 --- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts +++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts @@ -98,7 +98,10 @@ export class VideoBlockListComponent extends RestTable implements OnInit { this.videoService.removeVideo(videoBlock.video.id) .subscribe({ - next: () => this.notifier.success($localize`Video deleted.`), + next: () => { + this.notifier.success($localize`Video deleted.`) + this.reloadData() + }, error: err => this.notifier.error(err.message) })