From 06be7ed0b27b371465c5d1b7f92b4adfb0b866ea Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 25 May 2018 08:38:59 +0200 Subject: Reload my videos after delete --- .../+my-account/my-account-videos/my-account-videos.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client') diff --git a/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts b/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts index d8c919fee..6ab6c2aa5 100644 --- a/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts +++ b/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts @@ -88,7 +88,8 @@ export class MyAccountVideosComponent extends AbstractVideoList implements OnIni .subscribe( res => { this.notificationsService.success('Success', `${toDeleteVideosIds.length} videos deleted.`) - this.buildVideoPages() + this.abortSelectionMode() + this.reloadVideos() }, err => this.notificationsService.error('Error', err.message) @@ -103,8 +104,7 @@ export class MyAccountVideosComponent extends AbstractVideoList implements OnIni .subscribe( status => { this.notificationsService.success('Success', `Video ${video.name} deleted.`) - this.spliceVideosById(video.id) - this.buildVideoPages() + this.reloadVideos() }, error => this.notificationsService.error('Error', error.message) -- cgit v1.2.3