mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-31 12:00:06 -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;
|
background-color: #ff5722;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.top-right.denied span.indicator:before{
|
||||||
|
background-color: #ff5722;
|
||||||
|
}
|
||||||
|
|
||||||
.top-right.partly-available span.indicator:before{
|
.top-right.partly-available span.indicator:before{
|
||||||
background-color: #ffd740;
|
background-color: #ffd740;
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,6 +98,9 @@ export class DiscoverCardComponent implements OnInit {
|
||||||
if (this.result.approved) {
|
if (this.result.approved) {
|
||||||
return "approved";
|
return "approved";
|
||||||
}
|
}
|
||||||
|
if (this.result.denied) {
|
||||||
|
return "denied";
|
||||||
|
}
|
||||||
if (this.result.requested) {
|
if (this.result.requested) {
|
||||||
return "requested";
|
return "requested";
|
||||||
}
|
}
|
||||||
|
@ -114,6 +117,9 @@ export class DiscoverCardComponent implements OnInit {
|
||||||
if (this.result.approved) {
|
if (this.result.approved) {
|
||||||
return this.translate.instant("Common.Approved");
|
return this.translate.instant("Common.Approved");
|
||||||
}
|
}
|
||||||
|
if (this.result.denied) {
|
||||||
|
return this.translate.instant("Common.Denied");
|
||||||
|
}
|
||||||
if (this.result.requested) {
|
if (this.result.requested) {
|
||||||
return this.translate.instant("Common.Pending");
|
return this.translate.instant("Common.Pending");
|
||||||
}
|
}
|
||||||
|
@ -180,6 +186,7 @@ export class DiscoverCardComponent implements OnInit {
|
||||||
this.result.available = updated.available || updated.available4K;
|
this.result.available = updated.available || updated.available4K;
|
||||||
this.result.requested = updated.requested || updated.has4KRequest;
|
this.result.requested = updated.requested || updated.has4KRequest;
|
||||||
this.result.approved = updated.approved || updated.available4K;
|
this.result.approved = updated.approved || updated.available4K;
|
||||||
|
this.result.denied = updated.denied || updated.denied4K;
|
||||||
this.result.rating = updated.voteAverage;
|
this.result.rating = updated.voteAverage;
|
||||||
this.result.overview = updated.overview;
|
this.result.overview = updated.overview;
|
||||||
this.result.imdbid = updated.imdbId;
|
this.result.imdbid = updated.imdbId;
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
homepage: string;
|
homepage: string;
|
||||||
imdbId: string;
|
imdbId: string;
|
||||||
approved: boolean;
|
approved: boolean;
|
||||||
|
denied: boolean;
|
||||||
|
deniedReason: string;
|
||||||
requested: boolean;
|
requested: boolean;
|
||||||
requestId: number;
|
requestId: number;
|
||||||
available: boolean;
|
available: boolean;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue