Fix incorrect request status for denied movies in discover card

pull/4581/head
Jamie 3 years ago committed by GitHub
commit 03d997a258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -216,6 +216,10 @@ small {
background-color: #ff5722;
}
.top-right.denied span.indicator:before{
background-color: #ff5722;
}
.top-right.partly-available span.indicator:before{
background-color: #ffd740;
}

@ -98,6 +98,9 @@ export class DiscoverCardComponent implements OnInit {
if (this.result.approved) {
return "approved";
}
if (this.result.denied) {
return "denied";
}
if (this.result.requested) {
return "requested";
}
@ -114,6 +117,9 @@ export class DiscoverCardComponent implements OnInit {
if (this.result.approved) {
return this.translate.instant("Common.Approved");
}
if (this.result.denied) {
return this.translate.instant("Common.Denied");
}
if (this.result.requested) {
return this.translate.instant("Common.Pending");
}
@ -180,6 +186,7 @@ export class DiscoverCardComponent implements OnInit {
this.result.available = updated.available || updated.available4K;
this.result.requested = updated.requested || updated.has4KRequest;
this.result.approved = updated.approved || updated.available4K;
this.result.denied = updated.denied || updated.denied4K;
this.result.rating = updated.voteAverage;
this.result.overview = updated.overview;
this.result.imdbid = updated.imdbId;

@ -23,6 +23,8 @@
homepage: string;
imdbId: string;
approved: boolean;
denied: boolean;
deniedReason: string;
requested: boolean;
requestId: number;
available: boolean;

Loading…
Cancel
Save