mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 17:53:55 +08:00
Previously, the admin site settings page rendered every setting with bespoke per-type controls layered on a buffered proxy, separate from the shared FormKit field infrastructure (`SettingDefinitionField` and the setting-field registry) that category-type and plugin settings already use. This change renders `bool` and `integer` settings through that shared infrastructure — gated per-type by an `adminReady` registry flag so the remaining types keep their current controls until they are converted in turn — by wrapping each row's control in a single-field `<Form>` whose `@onSet` writes back into the existing buffered proxy, so dirty tracking, the changes banner, and the route guard keep working unchanged. It also fixes two latent issues it surfaced: pressing Enter now submits through the row's full save path (including the confirmation dialog) instead of bypassing it, and `FKControlInput` no longer keeps a stale raw-text buffer that stopped Cancel and Reset from reverting a number field. |
||
|---|---|---|
| .. | ||
| components | ||
| modals | ||
| pages | ||
| cdp.rb | ||