Handle actions in other videos section
This commit is contained in:
parent
ae3171b660
commit
0a57bbff21
|
@ -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',
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -29,4 +29,7 @@ export class RecommendedVideosComponent implements OnChanges {
|
|||
}
|
||||
}
|
||||
|
||||
onVideoRemoved () {
|
||||
this.store.requestNewRecommendations(this.inputRecommendation)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue