Handle actions in other videos section

This commit is contained in:
Chocobozzz 2019-04-08 09:30:07 +02:00
parent ae3171b660
commit 0a57bbff21
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 4 additions and 2 deletions

View 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',

View 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>

View File

@ -29,4 +29,7 @@ export class RecommendedVideosComponent implements OnChanges {
}
}
onVideoRemoved () {
this.store.requestNewRecommendations(this.inputRecommendation)
}
}