auto-save: settings save on change via /style/field, noscript fallback button

This commit is contained in:
blankie 2026-06-14 08:46:21 +00:00
parent 076390cbee
commit a72de2bb10
2 changed files with 50 additions and 4 deletions

View file

@ -32,7 +32,7 @@ from .subscriptions import (
handle_subscription_delete, handle_subscription_syncall,
_sync_threads,
)
from .customize import handle_style_form, handle_style_submit, handle_style_template_submit, handle_about
from .customize import handle_style_form, handle_style_submit, handle_style_template_submit, handle_field_save, handle_about
from .tags import handle_tags, handle_tag_browse
from .data import (
handle_export, handle_import_form, handle_import_submit,
@ -125,6 +125,8 @@ def _dispatch_inner(data):
return handle_style_submit(body, gateway_host=gateway_host, scheme=scheme)
elif path == "/style/template":
return handle_style_template_submit(body, gateway_host=gateway_host, scheme=scheme)
elif path == "/style/field":
return handle_field_save(body)
elif path == "/style/reset":
set_setting("custom_template", "")
return handle_style_form("Template reset to default.", gateway_host=gateway_host, scheme=scheme)