mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-05-18 11:34:59 -04:00
Fix queue rules upper bound to never allow 0 (#543)
This commit is contained in:
@@ -236,6 +236,7 @@ export class QueueCleanerComponent implements OnInit, HasPendingChanges {
|
||||
readonly stallCompletionError = computed(() => {
|
||||
const min = this.stallMinCompletion() ?? 0;
|
||||
const max = this.stallMaxCompletion() ?? 100;
|
||||
if (max <= 0) return 'Max percentage must be greater than 0';
|
||||
if (max < min) return 'Max percentage must be greater than or equal to Min percentage';
|
||||
return undefined;
|
||||
});
|
||||
@@ -256,6 +257,7 @@ export class QueueCleanerComponent implements OnInit, HasPendingChanges {
|
||||
readonly slowCompletionError = computed(() => {
|
||||
const min = this.slowMinCompletion() ?? 0;
|
||||
const max = this.slowMaxCompletion() ?? 100;
|
||||
if (max <= 0) return 'Max percentage must be greater than 0';
|
||||
if (max < min) return 'Max percentage must be greater than or equal to Min percentage';
|
||||
return undefined;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user