aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-25 14:50:54 +0200
committerChocobozzz <me@florianbigard.com>2022-10-25 14:50:54 +0200
commit3fc43fa0b0e81ff972526057c9d63e0aaa012aaa (patch)
treee57e3f78087042559b0746f801e389e8b8d430be
parent34ba86a8b481e0071c5253fcd562911a48688352 (diff)
downloadPeerTube-3fc43fa0b0e81ff972526057c9d63e0aaa012aaa.tar.gz
PeerTube-3fc43fa0b0e81ff972526057c9d63e0aaa012aaa.tar.zst
PeerTube-3fc43fa0b0e81ff972526057c9d63e0aaa012aaa.zip
Reload data when deleting a blocked video
-rw-r--r--client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts5
1 files changed, 4 insertions, 1 deletions
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 {
98 98
99 this.videoService.removeVideo(videoBlock.video.id) 99 this.videoService.removeVideo(videoBlock.video.id)
100 .subscribe({ 100 .subscribe({
101 next: () => this.notifier.success($localize`Video deleted.`), 101 next: () => {
102 this.notifier.success($localize`Video deleted.`)
103 this.reloadData()
104 },
102 105
103 error: err => this.notifier.error(err.message) 106 error: err => this.notifier.error(err.message)
104 }) 107 })