X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fapp%2Fvideos%2Frecommendations%2Frecommended-videos.component.ts;h=c6c1d9e5d4c42a43c6eb0aa2499f016543114ae9;hb=b0c36821d1dcf362f14c99ca3741e7d03aea0a04;hp=aa4dd0ee28e956eb724ad82350377677b941557d;hpb=5cf84858d49f4231cc4efec5e3132f17f65f6cf6;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/videos/recommendations/recommended-videos.component.ts b/client/src/app/videos/recommendations/recommended-videos.component.ts index aa4dd0ee2..c6c1d9e5d 100644 --- a/client/src/app/videos/recommendations/recommended-videos.component.ts +++ b/client/src/app/videos/recommendations/recommended-videos.component.ts @@ -1,6 +1,7 @@ import { Component, Input, OnChanges } from '@angular/core' import { Observable } from 'rxjs' import { Video } from '@app/shared/video/video.model' +import { RecommendationInfo } from '@app/shared/video/recommendation-info.model' import { RecommendedVideosStore } from '@app/videos/recommendations/recommended-videos.store' import { User } from '@app/shared' @@ -9,7 +10,7 @@ import { User } from '@app/shared' templateUrl: './recommended-videos.component.html' }) export class RecommendedVideosComponent implements OnChanges { - @Input() inputVideo: Video + @Input() inputRecommendation: RecommendationInfo @Input() user: User readonly hasVideos$: Observable @@ -23,8 +24,8 @@ export class RecommendedVideosComponent implements OnChanges { } public ngOnChanges (): void { - if (this.inputVideo) { - this.store.requestNewRecommendations(this.inputVideo.uuid) + if (this.inputRecommendation) { + this.store.requestNewRecommendations(this.inputRecommendation) } }