mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
Added the fallback message for when there is a TV show airing in the future, and we do not yet have episode data for
This commit is contained in:
parent
078b30eba4
commit
e5c2f1e247
3 changed files with 10 additions and 4 deletions
|
@ -2,8 +2,10 @@
|
||||||
<mat-spinner *ngIf="loading" [color]="'accent'"></mat-spinner>
|
<mat-spinner *ngIf="loading" [color]="'accent'"></mat-spinner>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="!loading" mat-dialog-content class="background">
|
<div *ngIf="!loading" mat-dialog-content class="background">
|
||||||
|
<div *ngIf="!requestable">
|
||||||
<div class="row">
|
{{'MediaDetails.EpisodeSelector.NoEpisodes' | translate}}
|
||||||
|
</div>
|
||||||
|
<div *ngIf="requestable" class="row">
|
||||||
<div class="col-12 action-buttons-right">
|
<div class="col-12 action-buttons-right">
|
||||||
<button (click)="requestAllSeasons()" color="primary" mat-raised-button class="btn-spacing"
|
<button (click)="requestAllSeasons()" color="primary" mat-raised-button class="btn-spacing"
|
||||||
matTooltip="{{'MediaDetails.EpisodeSelector.AllSeasonsTooltip' | translate}}">{{'Search.TvShows.AllSeasons' | translate }}</button>
|
matTooltip="{{'MediaDetails.EpisodeSelector.AllSeasonsTooltip' | translate}}">{{'Search.TvShows.AllSeasons' | translate }}</button>
|
||||||
|
@ -71,7 +73,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div mat-dialog-actions>
|
<div mat-dialog-actions *ngIf="requestable">
|
||||||
<div class="action-buttons-right">
|
<div class="action-buttons-right">
|
||||||
|
|
||||||
<button (click)="submitRequests()" mat-raised-button class="btn-spacing btn-orange">{{
|
<button (click)="submitRequests()" mat-raised-button class="btn-spacing btn-orange">{{
|
||||||
|
|
|
@ -17,6 +17,9 @@ export interface EpisodeRequestData {
|
||||||
export class EpisodeRequestComponent implements OnInit {
|
export class EpisodeRequestComponent implements OnInit {
|
||||||
|
|
||||||
public loading: boolean;
|
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,
|
constructor(public dialogRef: MatDialogRef<EpisodeRequestComponent>, @Inject(MAT_DIALOG_DATA) public data: EpisodeRequestData,
|
||||||
private requestService: RequestService, private notificationService: MessageService) { }
|
private requestService: RequestService, private notificationService: MessageService) { }
|
||||||
|
|
|
@ -270,7 +270,8 @@
|
||||||
"EpisodeSelector": {
|
"EpisodeSelector": {
|
||||||
"AllSeasonsTooltip": "This will request every season for this show",
|
"AllSeasonsTooltip": "This will request every season for this show",
|
||||||
"FirstSeasonTooltip": "This will only request the First 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",
|
"SonarrConfiguration": "Sonarr Configuration",
|
||||||
"RadarrConfiguration": "Radarr Configuration",
|
"RadarrConfiguration": "Radarr Configuration",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue