discourse/app
Osama Sayegh a92cf019db
FIX: Make cancel and reset buttons work for file_size_restriction settings (#28347)
This commit fixes a number of bugs in `file_size_restriction` settings and does a little of refactoring to reduce duplicated code in site setting types (the refactoring is necessary to fix one of the bugs).

The bugs in `file_size_restriction` settings that are fixed in this commit:

1. Save/cancel buttons next to a `file_size_restriction` setting are shown upon navigating to the settings page without changes being made to the setting
2. Cancel button that discards changes made to the setting doesn't work
3. Reset button that resets the setting to its default doesn't work
4. Validation error message isn't cleared when resetting/cancelling changes

To repro those bugs, navigate to `/admin/site_settings/category/files` and observe the top 2 settings in the page (`max image size kb` and `max attachment size kb`).

Internal topic: t/134726.
2024-08-15 19:38:47 +03:00
..
assets FIX: Make cancel and reset buttons work for file_size_restriction settings (#28347) 2024-08-15 19:38:47 +03:00
controllers FIX: serialize Flags instead of PostActionType (#28362) 2024-08-14 12:13:46 +10:00
helpers UX: Use localized time format in embedded comments (#28014) 2024-07-22 18:42:36 +08:00
jobs FIX: serialize Flags instead of PostActionType (#28362) 2024-08-14 12:13:46 +10:00
mailers UX: Use a dropdown for SSL mode for group SMTP (#27932) 2024-07-18 10:33:14 +10:00
models FIX: serialize Flags instead of PostActionType (#28362) 2024-08-14 12:13:46 +10:00
serializers FEATURE: Allow completely custom score reasons. (#28348) 2024-08-14 15:53:59 -03:00
services FEATURE: add delay to native push notifications (#28314) 2024-08-13 12:12:05 +04:00
views DEV: Convert account activation pages to use Ember (#28206) 2024-08-12 18:02:00 -03:00