From dcfd688c8d2337e55fa9c6c33b7c3e80fc560cda Mon Sep 17 00:00:00 2001 From: tidusjar Date: Tue, 1 Mar 2022 08:53:18 +0000 Subject: [PATCH] fix(discover): :bug: Fixed the issue where there was an option on the discover to request 4k shows (that's not supported currently) --- .../card/discover-card.component.html | 44 +++++++++++-------- .../card/discover-card.component.ts | 8 ++-- 2 files changed, 31 insertions(+), 21 deletions(-) diff --git a/src/Ombi/ClientApp/src/app/discover/components/card/discover-card.component.html b/src/Ombi/ClientApp/src/app/discover/components/card/discover-card.component.html index b7593902f..6bd515e27 100644 --- a/src/Ombi/ClientApp/src/app/discover/components/card/discover-card.component.html +++ b/src/Ombi/ClientApp/src/app/discover/components/card/discover-card.component.html @@ -20,24 +20,32 @@
-
- -
-
- - - - - -
+ +
+ +
+ + + + + +
+
+ +
+ +
+
+ +
\ No newline at end of file diff --git a/src/Ombi/ClientApp/src/app/discover/components/card/discover-card.component.ts b/src/Ombi/ClientApp/src/app/discover/components/card/discover-card.component.ts index 470559b0d..84488eef7 100644 --- a/src/Ombi/ClientApp/src/app/discover/components/card/discover-card.component.ts +++ b/src/Ombi/ClientApp/src/app/discover/components/card/discover-card.component.ts @@ -26,6 +26,7 @@ export class DiscoverCardComponent implements OnInit { public hide: boolean; public fullyLoaded = false; public loading: boolean; + public allow4KButton: boolean = false; public requestable: boolean; @@ -41,6 +42,7 @@ export class DiscoverCardComponent implements OnInit { this.getExtraTvInfo(); } if (this.result.type == RequestType.movie) { + this.allow4KButton = true; this.getExtraMovieInfo(); } if (this.result.type == RequestType.album) { @@ -169,9 +171,9 @@ export class DiscoverCardComponent implements OnInit { private updateMovieItem(updated: ISearchMovieResultV2) { this.result.url = "http://www.imdb.com/title/" + updated.imdbId + "/"; - this.result.available = updated.available; - this.result.requested = updated.requested; - this.result.approved = updated.approved; + this.result.available = updated.available || updated.available4K; + this.result.requested = updated.requested || updated.has4KRequest; + this.result.approved = updated.approved || updated.available4K; this.result.rating = updated.voteAverage; this.result.overview = updated.overview; this.result.imdbid = updated.imdbId;