Fix incorrect request status for denied movies

pull/4575/head
sephrat 3 years ago
parent dffadbe9d7
commit 04c1fa73e8

@ -398,6 +398,8 @@ namespace Ombi.Core.Engine.V2
mapped.Available = viewMovie.Available; mapped.Available = viewMovie.Available;
mapped.Approved = viewMovie.Approved; mapped.Approved = viewMovie.Approved;
mapped.Denied = viewMovie.Denied;
mapped.DeniedReason = viewMovie.DeniedReason;
mapped.RequestId = viewMovie.RequestId; mapped.RequestId = viewMovie.RequestId;
mapped.Requested = viewMovie.Requested; mapped.Requested = viewMovie.Requested;
mapped.PlexUrl = viewMovie.PlexUrl; mapped.PlexUrl = viewMovie.PlexUrl;

@ -36,10 +36,11 @@
</div> </div>
<div *ngIf="!movie.available"> <div *ngIf="!movie.available">
<span class="label">{{'MediaDetails.RequestStatus' | translate }}</span> <span class="label">{{'MediaDetails.RequestStatus' | translate }}</span>
<div *ngIf="movie.approved && !movie.available">{{'Common.ProcessingRequest' | translate}}</div> <div *ngIf="movie.denied">{{'Common.Denied' | translate}}</div>
<div *ngIf="movie.requested && !movie.approved && !movie.available">{{'Common.PendingApproval' | translate}} <div *ngElseIf="movie.approved && !movie.available">{{'Common.ProcessingRequest' | translate}}</div>
<div *ngElseIf="movie.requested && !movie.approved && !movie.available">{{'Common.PendingApproval' | translate}}
</div> </div>
<div *ngIf="!movie.requested && !movie.available && !movie.approved">{{'Common.NotRequested' | translate}} <div *ngElseIf="!movie.requested && !movie.available && !movie.approved">{{'Common.NotRequested' | translate}}
</div> </div>
</div> </div>

Loading…
Cancel
Save