From d19efd91a5f7dda342aec77f74d575fe6a886bf5 Mon Sep 17 00:00:00 2001 From: Jamie Date: Fri, 28 Sep 2018 20:35:16 +0100 Subject: [PATCH] Put the issue purge limit on the issues page --- .../app/settings/issues/issues.component.html | 13 +++++++------ .../app/settings/issues/issues.component.ts | 5 +++++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/Ombi/ClientApp/app/settings/issues/issues.component.html b/src/Ombi/ClientApp/app/settings/issues/issues.component.html index ee780a1a1..fa5988a79 100644 --- a/src/Ombi/ClientApp/app/settings/issues/issues.component.html +++ b/src/Ombi/ClientApp/app/settings/issues/issues.component.html @@ -26,12 +26,13 @@
-
- - -
+ +
+
@@ -52,8 +53,8 @@
- +
diff --git a/src/Ombi/ClientApp/app/settings/issues/issues.component.ts b/src/Ombi/ClientApp/app/settings/issues/issues.component.ts index 37ead870a..cfe0bd65c 100644 --- a/src/Ombi/ClientApp/app/settings/issues/issues.component.ts +++ b/src/Ombi/ClientApp/app/settings/issues/issues.component.ts @@ -55,6 +55,11 @@ export class IssuesComponent implements OnInit { const settings = form.value; + if(settings.deleteIssues && settings.daysAfterResolvedToDelete <= 0) { + this.notificationService.error("You need to enter days greater than 0"); + return; + } + this.settingsService.saveIssueSettings(settings).subscribe(x => { if (x) { this.notificationService.success("Successfully saved the Issue settings");