mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-30 11:38:32 -07:00
Fix incorrect request status for denied movies in discover card
This commit is contained in:
parent
d933196cf0
commit
33f4cf2c61
3 changed files with 13 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue