Adding people to movie's details

This commit is contained in:
Zoe Roux 2020-08-07 18:56:57 +02:00
parent 334d79bb74
commit 1c5b261b5b

View File

@ -47,6 +47,8 @@ export class ShowDetailsComponent implements OnInit
this.show = data.show; this.show = data.show;
this.title.setTitle(this.show.title + " - Kyoo"); this.title.setTitle(this.show.title + " - Kyoo");
this.peopleService.getFromShow(this.show.slug).subscribe(x => this.people = x);
if (this.show.isMovie) if (this.show.isMovie)
return; return;
@ -59,9 +61,7 @@ export class ShowDetailsComponent implements OnInit
this.getEpisodes(1); this.getEpisodes(1);
} }
}); });
this.getEpisodes(this.season); this.getEpisodes(this.season);});
this.peopleService.getFromShow(this.show.slug).subscribe(x => this.people = x);
});
} }
ngOnInit() ngOnInit()