From 7ec2b8a2d677536f3b24c147ca41b4d5a63f105d Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Mon, 17 Mar 2025 14:47:53 -0700 Subject: [PATCH] Added UI to settings form --- .../settings/setting_html/setting_form.html.heex | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/pinchflat_web/controllers/settings/setting_html/setting_form.html.heex b/lib/pinchflat_web/controllers/settings/setting_html/setting_form.html.heex index 9fb55cc..c59031f 100644 --- a/lib/pinchflat_web/controllers/settings/setting_html/setting_form.html.heex +++ b/lib/pinchflat_web/controllers/settings/setting_html/setting_form.html.heex @@ -54,7 +54,14 @@ field={f[:download_throughput_limit]} placeholder="4.2M" label="Download Throughput" - help="Sets the max throughput when downloading media. Examples: '50K' or '4.2M'. Leave blank to disable" + help="Sets the max bytes-per-second throughput when downloading media. Examples: '50K' or '4.2M'. Leave blank to disable" + /> + + <.input + field={f[:restrict_filenames]} + type="toggle" + label="Restrict Filenames" + help="Restrict filenames to only ASCII characters and avoid ampersands/spaces in filenames" />