enhancement(web): disable freeleech percent field if freeleech is enabled (#680)

fix(filters) freeleech percent handling
This commit is contained in:
soup 2023-02-02 23:47:09 +01:00 committed by GitHub
parent af43c98632
commit a50332394c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -546,7 +546,7 @@ export function Advanced({ values }: AdvancedProps) {
<SwitchGroup name="freeleech" label="Freeleech" /> <SwitchGroup name="freeleech" label="Freeleech" />
</div> </div>
<TextField name="freeleech_percent" label="Freeleech percent" columns={6} placeholder="eg. 50,75-100" /> <TextField name="freeleech_percent" label="Freeleech percent" columns={6} placeholder="eg. 50,75-100" disabled={values.freeleech}/>
</CollapsableSection> </CollapsableSection>
</div> </div>
); );