fix(filters): allow negative priority again (#669)

fix(web/filters): allow negative priorites again
This commit is contained in:
martylukyy 2023-01-29 16:02:35 +01:00 committed by GitHub
parent eb3a86f49d
commit 81b7d341e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -349,7 +349,7 @@ export function General() {
<TextField name="min_size" label="Min size" columns={6} placeholder="eg. 100MiB, 80GB" /> <TextField name="min_size" label="Min size" columns={6} placeholder="eg. 100MiB, 80GB" />
<TextField name="max_size" label="Max size" columns={6} placeholder="eg. 100MiB, 80GB" /> <TextField name="max_size" label="Max size" columns={6} placeholder="eg. 100MiB, 80GB" />
<NumberField name="delay" label="Delay" placeholder="Number of seconds to delay actions" /> <NumberField name="delay" label="Delay" placeholder="Number of seconds to delay actions" />
<NumberField name="priority" label="Priority" placeholder="Higher number = higher prio" min={0} required={true} /> <NumberField name="priority" label="Priority" placeholder="Higher number = higher prio" required={true} />
<NumberField name="max_downloads" label="Max downloads" placeholder="Takes any number (0 is infinite)" min={0} required={true} /> <NumberField name="max_downloads" label="Max downloads" placeholder="Takes any number (0 is infinite)" min={0} required={true} />
<Select name="max_downloads_unit" label="Max downloads per" options={downloadsPerUnitOptions} optionDefaultText="Select unit" /> <Select name="max_downloads_unit" label="Max downloads per" options={downloadsPerUnitOptions} optionDefaultText="Select unit" />