mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
Fixed #1655
This commit is contained in:
parent
1556b66bf7
commit
152c495b37
1 changed files with 13 additions and 0 deletions
|
@ -37,6 +37,19 @@ export class SeriesInformationComponent implements OnInit, OnDestroy {
|
|||
}
|
||||
|
||||
public submitRequests() {
|
||||
|
||||
// Make sure something has been selected
|
||||
const selected = this.series.seasonRequests.some((season) => {
|
||||
return season.episodes.some((ep) => {
|
||||
return ep.selected;
|
||||
});
|
||||
});
|
||||
|
||||
if(!selected) {
|
||||
this.notificationService.error("You need to select some episodes!");
|
||||
return;
|
||||
}
|
||||
|
||||
this.series.requested = true;
|
||||
|
||||
this.requestService.requestTv(this.series)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue