discourse/app/assets/javascripts
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
..
admin FIX: Make cancel and reset buttons work for file_size_restriction settings (#28347) 2024-08-15 19:38:47 +03:00
custom-proxy Build(deps-dev): Bump glob from 10.4.2 to 10.4.3 (#27751) 2024-07-08 08:40:31 +08:00
deprecation-silencer DEV: Silence whitespace-eating-comment warnings (#27129) 2024-05-22 16:21:51 +02:00
dialog-holder Build(deps-dev): Bump webpack from 5.92.1 to 5.93.0 (#27882) 2024-07-12 01:30:31 +02:00
discourse FIX: Make cancel and reset buttons work for file_size_restriction settings (#28347) 2024-08-15 19:38:47 +03:00
discourse-common DEV: Promote modifyClass warning to error (#28300) 2024-08-09 16:45:33 +01:00
discourse-hbr
discourse-i18n UX: respect current locale on topic map views date format (#28199) 2024-08-05 13:18:48 -03:00
discourse-markdown-it UX: do not check for dimensions in video filename (#28349) 2024-08-15 11:59:13 -04:00
discourse-plugins DEV: Upgrade babel & remove vendored safari-bugfix transformation (#28208) 2024-08-05 10:35:26 +01:00
discourse-widget-hbs DEV: Upgrade babel & remove vendored safari-bugfix transformation (#28208) 2024-08-05 10:35:26 +01:00
docs
ember-addons
ember-cli-progress-ci
ember-production-deprecations DEV: Update ember-cli-deprecation-workflow from 2.2.0 to 3.0.1 (#28226) 2024-08-07 17:59:42 +02:00
float-kit DEV: Upgrade babel & remove vendored safari-bugfix transformation (#28208) 2024-08-05 10:35:26 +01:00
locales FEATURE: Add Uyghur language (#27183) 2024-05-27 09:58:18 +02:00
pretty-text DEV: Upgrade babel & remove vendored safari-bugfix transformation (#28208) 2024-08-05 10:35:26 +01:00
select-kit DEV: allows to alter category name/description (#28263) 2024-08-08 17:33:23 +02:00
theme-transpiler Build(deps): Bump terser from 5.31.5 to 5.31.6 (#28358) 2024-08-14 00:57:46 +02:00
truth-helpers Build(deps): Bump ember-auto-import from 2.7.3 to 2.7.4 (#27615) 2024-06-26 01:35:06 +02:00
.npmrc
handlebars-shim.js
polyfills.js
run-patch-package
service-worker.js.erb