From 23f0ef3b0da4eb0aa1723d877ea8606290b24c8e Mon Sep 17 00:00:00 2001 From: tidusjar Date: Sat, 7 Oct 2017 21:23:01 +0100 Subject: [PATCH] Fixed the overrides #1539 also display it on screen now too --- src/Ombi.Core/Engine/MovieRequestEngine.cs | 2 + .../ClientApp/app/interfaces/IRequestModel.ts | 3 + .../app/requests/movierequests.component.html | 37 ++++------ .../app/requests/movierequests.component.ts | 69 ++++++++++++++++--- 4 files changed, 78 insertions(+), 33 deletions(-) diff --git a/src/Ombi.Core/Engine/MovieRequestEngine.cs b/src/Ombi.Core/Engine/MovieRequestEngine.cs index e9c394859..74b42e7d6 100644 --- a/src/Ombi.Core/Engine/MovieRequestEngine.cs +++ b/src/Ombi.Core/Engine/MovieRequestEngine.cs @@ -197,6 +197,8 @@ namespace Ombi.Core.Engine results.Issues = request.Issues; results.Overview = request.Overview; results.PosterPath = request.PosterPath; + results.QualityOverride = request.QualityOverride; + results.RootPathOverride = request.RootPathOverride; await MovieRepository.Update(results); return results; diff --git a/src/Ombi/ClientApp/app/interfaces/IRequestModel.ts b/src/Ombi/ClientApp/app/interfaces/IRequestModel.ts index e67c63ed0..5557ec741 100644 --- a/src/Ombi/ClientApp/app/interfaces/IRequestModel.ts +++ b/src/Ombi/ClientApp/app/interfaces/IRequestModel.ts @@ -81,6 +81,9 @@ export interface IMovieRequests extends IFullBaseRequest { theMovieDbId: number; rootPathOverride: number; qualityOverride: number; + + rootPathOverrideTitle: string; + qualityOverrideTitle: string; } export interface IFullBaseRequest extends IBaseRequest { diff --git a/src/Ombi/ClientApp/app/requests/movierequests.component.html b/src/Ombi/ClientApp/app/requests/movierequests.component.html index dc2c23666..6e5f7eef5 100644 --- a/src/Ombi/ClientApp/app/requests/movierequests.component.html +++ b/src/Ombi/ClientApp/app/requests/movierequests.component.html @@ -55,24 +55,13 @@
Release Date: {{request.releaseDate | date}}
+
Requested Date: {{request.requestedDate | date}}

+
+
Quality Override: {{request.qualityOverrideTitle}}
+
Root Folder Override: {{request.rootPathOverrideTitle}}
+
- -
Requested By: {{user}}
- -
Requested Date: {{request.requestedDate | date}}
-
@@ -83,25 +72,25 @@
- - +
- +
- - +
@@ -124,7 +113,7 @@
- +