diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-08 09:30:07 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-08 09:30:07 +0200 |
commit | 0a57bbff2141de718aa901bfbdd147468fd624c6 (patch) | |
tree | b1258978d0fdf35a08537cd43fa883060e431bb1 /client/src/app/videos/recommendations | |
parent | ae3171b66001bab3b67e6ea87190339e3cc3b677 (diff) | |
download | PeerTube-0a57bbff2141de718aa901bfbdd147468fd624c6.tar.gz PeerTube-0a57bbff2141de718aa901bfbdd147468fd624c6.tar.zst PeerTube-0a57bbff2141de718aa901bfbdd147468fd624c6.zip |
Handle actions in other videos section
Diffstat (limited to 'client/src/app/videos/recommendations')
-rw-r--r-- | client/src/app/videos/recommendations/recommended-videos.component.html | 2 | ||||
-rw-r--r-- | client/src/app/videos/recommendations/recommended-videos.component.ts | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/client/src/app/videos/recommendations/recommended-videos.component.html b/client/src/app/videos/recommendations/recommended-videos.component.html index 73f9f0fe1..1fb89f8b0 100644 --- a/client/src/app/videos/recommendations/recommended-videos.component.html +++ b/client/src/app/videos/recommendations/recommended-videos.component.html | |||
@@ -4,6 +4,6 @@ | |||
4 | </div> | 4 | </div> |
5 | 5 | ||
6 | <div *ngFor="let video of (videos$ | async)"> | 6 | <div *ngFor="let video of (videos$ | async)"> |
7 | <my-video-miniature [video]="video" [user]="user"></my-video-miniature> | 7 | <my-video-miniature [video]="video" [user]="user" (videoBlacklisted)="onVideoRemoved()" (videoRemoved)="onVideoRemoved()"></my-video-miniature> |
8 | </div> | 8 | </div> |
9 | </div> | 9 | </div> |
diff --git a/client/src/app/videos/recommendations/recommended-videos.component.ts b/client/src/app/videos/recommendations/recommended-videos.component.ts index c6c1d9e5d..68fd750cc 100644 --- a/client/src/app/videos/recommendations/recommended-videos.component.ts +++ b/client/src/app/videos/recommendations/recommended-videos.component.ts | |||
@@ -29,4 +29,7 @@ export class RecommendedVideosComponent implements OnChanges { | |||
29 | } | 29 | } |
30 | } | 30 | } |
31 | 31 | ||
32 | onVideoRemoved () { | ||
33 | this.store.requestNewRecommendations(this.inputRecommendation) | ||
34 | } | ||
32 | } | 35 | } |