Reload videos after removing one to avoid issues with paging etc
authorChocobozzz <florian.bigard@gmail.com>
Sat, 4 Jun 2016 17:02:32 +0000 (19:02 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Sat, 4 Jun 2016 17:02:32 +0000 (19:02 +0200)
client/src/app/videos/video-list/video-list.component.ts

index b1ce5584526843dec4ada62c04edcaace8281dce..059317383fe8e1dbaacb219156dadd31ce7b0e3f 100644 (file)
@@ -84,7 +84,7 @@ export class VideoListComponent implements OnInit {
   }
 
   onRemoved(video: Video) {
-    this.videos.splice(this.videos.indexOf(video), 1);
+    this.getVideos();
   }
 
   onSort(sort: SortField) {