Added the fallback message for when there is a TV show airing in the future, and we do not yet have episode data for

pull/4016/head
tidusjar 4 years ago
parent 078b30eba4
commit e5c2f1e247

@ -2,8 +2,10 @@
<mat-spinner *ngIf="loading" [color]="'accent'"></mat-spinner>
</div>
<div *ngIf="!loading" mat-dialog-content class="background">
<div class="row">
<div *ngIf="!requestable">
{{'MediaDetails.EpisodeSelector.NoEpisodes' | translate}}
</div>
<div *ngIf="requestable" class="row">
<div class="col-12 action-buttons-right">
<button (click)="requestAllSeasons()" color="primary" mat-raised-button class="btn-spacing"
matTooltip="{{'MediaDetails.EpisodeSelector.AllSeasonsTooltip' | translate}}">{{'Search.TvShows.AllSeasons' | translate }}</button>
@ -71,7 +73,7 @@
</div>
</div>
<div mat-dialog-actions>
<div mat-dialog-actions *ngIf="requestable">
<div class="action-buttons-right">
<button (click)="submitRequests()" mat-raised-button class="btn-spacing btn-orange">{{

@ -17,6 +17,9 @@ export interface EpisodeRequestData {
export class EpisodeRequestComponent implements OnInit {
public loading: boolean;
public get requestable() {
return this.data?.series?.seasonRequests?.length > 0
}
constructor(public dialogRef: MatDialogRef<EpisodeRequestComponent>, @Inject(MAT_DIALOG_DATA) public data: EpisodeRequestData,
private requestService: RequestService, private notificationService: MessageService) { }

@ -270,7 +270,8 @@
"EpisodeSelector": {
"AllSeasonsTooltip": "This will request every season for this show",
"FirstSeasonTooltip": "This will only request the First Season for this show",
"LatestSeasonTooltip": "This will only request the Latest Season for this show"
"LatestSeasonTooltip": "This will only request the Latest Season for this show",
"NoEpisodes": "There unfortunatly is no episode data for this show yet!"
},
"SonarrConfiguration": "Sonarr Configuration",
"RadarrConfiguration": "Radarr Configuration",

Loading…
Cancel
Save