Handle actions in other videos section
authorChocobozzz <me@florianbigard.com>
Mon, 8 Apr 2019 07:30:07 +0000 (09:30 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 8 Apr 2019 07:30:07 +0000 (09:30 +0200)
client/src/app/videos/+video-watch/video-watch.component.ts
client/src/app/videos/recommendations/recommended-videos.component.html
client/src/app/videos/recommendations/recommended-videos.component.ts

index 53673d9d92a92c761a57c35360131469c2ed5086..edc546b283f4e7a9856076549ea0e1b1115b5490 100644 (file)
@@ -29,7 +29,6 @@ import { VideoPlaylist } from '@app/shared/video-playlist/video-playlist.model'
 import { VideoPlaylistService } from '@app/shared/video-playlist/video-playlist.service'
 import { ComponentPagination } from '@app/shared/rest/component-pagination.model'
 import { Video } from '@app/shared/video/video.model'
-import { VideoActionsDisplayType } from '@app/shared/video/video-actions-dropdown.component'
 
 @Component({
   selector: 'my-video-watch',
index 73f9f0fe113d0097ea6d3ff456893ce5f6017f51..1fb89f8b098fafcec3c44cc969d61d1bdbd7a725 100644 (file)
@@ -4,6 +4,6 @@
     </div>
 
     <div *ngFor="let video of (videos$ | async)">
-        <my-video-miniature [video]="video" [user]="user"></my-video-miniature>
+        <my-video-miniature [video]="video" [user]="user" (videoBlacklisted)="onVideoRemoved()" (videoRemoved)="onVideoRemoved()"></my-video-miniature>
     </div>
 </div>
index c6c1d9e5d4c42a43c6eb0aa2499f016543114ae9..68fd750ccb9f64786e74fa993fde45c2947dd34f 100644 (file)
@@ -29,4 +29,7 @@ export class RecommendedVideosComponent implements OnChanges {
     }
   }
 
+  onVideoRemoved () {
+    this.store.requestNewRecommendations(this.inputRecommendation)
+  }
 }