diff --git a/src/Ombi.Core/Engine/MovieRequestEngine.cs b/src/Ombi.Core/Engine/MovieRequestEngine.cs
index 8f4693be1..456ba267a 100644
--- a/src/Ombi.Core/Engine/MovieRequestEngine.cs
+++ b/src/Ombi.Core/Engine/MovieRequestEngine.cs
@@ -326,6 +326,7 @@ namespace Ombi.Core.Engine
return new RequestEngineResult
{
+ Result = true,
Message = "Request successfully deleted",
};
}
diff --git a/src/Ombi/ClientApp/app/requests/movierequests.component.html b/src/Ombi/ClientApp/app/requests/movierequests.component.html
index 8d2158236..6f3b4dd00 100644
--- a/src/Ombi/ClientApp/app/requests/movierequests.component.html
+++ b/src/Ombi/ClientApp/app/requests/movierequests.component.html
@@ -87,9 +87,6 @@
-
-
-
diff --git a/src/Ombi/ClientApp/app/requests/movierequests.component.ts b/src/Ombi/ClientApp/app/requests/movierequests.component.ts
index 3c7a4f993..daff9a455 100644
--- a/src/Ombi/ClientApp/app/requests/movierequests.component.ts
+++ b/src/Ombi/ClientApp/app/requests/movierequests.component.ts
@@ -135,15 +135,20 @@ export class MovieRequestsComponent implements OnInit {
public deny(request: IMovieRequests) {
this.requestToDeny = request;
this.denyDisplay = true;
- }
+ }
public denyRequest() {
this.requestService.denyMovie({ id: this.requestToDeny.id, reason: this.rejectionReason })
.subscribe(x => {
+ debugger;
this.denyDisplay = false;
if (x.result) {
this.notificationService.success(
`Request for ${this.requestToDeny.title} has been denied successfully`);
+ const index = this.movieRequests.indexOf(this.requestToDeny, 0);
+ if (index > -1) {
+ this.movieRequests[index].denied = true;
+ }
} else {
this.notificationService.warning("Request Denied", x.message ? x.message : x.errorMessage);
this.requestToDeny.denied = false;