File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/Ombi/ClientApp/src/app/media-details/components/tv Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,11 @@ <h3> {{ 'MediaDetails.NotEnoughInfo' | translate }}</h3>
57
57
< i class ="far fa-play-circle fa-2x "> </ i >
58
58
</ a >
59
59
</ ng-container >
60
- < button *ngIf ="!tv.fullyAvailable && !allEpisodesRequested () " mat-raised-button id ="requestBtn " class ="btn-spacing " color ="primary "
60
+ < button *ngIf ="( !tv.fullyAvailable || (tv.fullyAvailable && tv.partlyAvailable)) && !allUnavailableEpisodesRequested () " mat-raised-button id ="requestBtn " class ="btn-spacing " color ="primary "
61
61
(click) ="request() "> < i class ="fas fa-plus "> </ i >
62
62
{{ 'Common.Request' | translate }}</ button >
63
63
64
- < button *ngIf ="!tv.denied && allEpisodesRequested () " mat-raised-button class ="btn-spacing " color ="warn " [disabled] >
64
+ < button *ngIf ="!tv.denied && allUnavailableEpisodesRequested () " mat-raised-button class ="btn-spacing " color ="warn " [disabled] >
65
65
< i class ="fas fa-check "> </ i >
66
66
{{ 'Common.Requested' | translate }}</ button >
67
67
Original file line number Diff line number Diff line change @@ -126,9 +126,10 @@ export class TvDetailsComponent implements OnInit {
126
126
}
127
127
}
128
128
129
- public allEpisodesRequested ( ) : boolean {
130
- return this . tv . seasonRequests . every ( e => e . episodes . every ( x => x . approved || x . requested ) ) ;
129
+ public allUnavailableEpisodesRequested ( ) : boolean {
130
+ return this . tv . seasonRequests . every ( e => e . episodes . every ( x => x . available || x . approved || x . requested ) ) ;
131
131
}
132
+
132
133
private checkPoster ( ) {
133
134
if ( this . tv . images . original == null ) {
134
135
this . tv . images . original = "../../../images/default_movie_poster.png" ;
You can’t perform that action at this time.
0 commit comments