discourse/app/assets/javascripts/admin/addon/models
Alan Guo Xiang Tan 0eda1c96f1
FIX: Ensure Theme#settings are instances of ThemeSettings (#26481)
Why this change?

Instead of dealing with a generic object for `Theme#settings`, we want
to always be dealing with `ThemeSettings` objects.` Previously, we
converted the generic objects to `ThemeSettings` objects in the theme's
adapter `afterFindAll` function. This is not correct because updating
or saving the theme individual reverted the `Theme#settings` back to an
array of generic object.

To fix this problem, the proper way with our REST models is to overwrite
the static `munge` method and create `ThemeSettings` instances there.
2024-04-03 13:10:47 +08:00
..
admin-dashboard.js UX: add gift emoji styling for new features (#24523) 2023-11-27 09:32:28 +11:00
admin-plugin.js FEATURE: More flexible admin plugin config nav definition (#26254) 2024-03-21 13:42:06 +10:00
admin-user.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
api-key.js DEV: Fix "no-setter-return" lint (#24585) 2023-11-28 10:49:49 +01:00
backup-status.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
backup.js DEV: Update admin models to native class syntax (#20704) 2023-03-17 10:18:42 +00:00
color-scheme-color.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
color-scheme.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
email-log.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
email-preview.js DEV: Update admin models to native class syntax (#20704) 2023-03-17 10:18:42 +00:00
email-settings.js DEV: Update admin models to native class syntax (#20704) 2023-03-17 10:18:42 +00:00
email-style.js DEV: Update admin models to native class syntax (#20704) 2023-03-17 10:18:42 +00:00
email-template.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
flag-type.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
form-template.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
incoming-email.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
permalink.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
report.js DEV: Add support for radar charts when displaying reports. (#24274) 2023-11-08 10:48:12 -03:00
screened-email.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
screened-ip-address.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
screened-url.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
site-setting.js FEATURE: Allow site settings to be edited throughout admin UI (#26154) 2024-03-18 08:50:39 +10:00
site-text.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
staff-action-log.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
theme-settings.js DEV: Load theme objects typed setting metadata when routing to editor (#26354) 2024-03-26 14:02:05 +08:00
theme.js FIX: Ensure Theme#settings are instances of ThemeSettings (#26481) 2024-04-03 13:10:47 +08:00
tl3-requirements.js DEV: Update admin models to native class syntax (#20704) 2023-03-17 10:18:42 +00:00
user-field.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
version-check.js DEV: Update admin models to native class syntax (#20704) 2023-03-17 10:18:42 +00:00
watched-word.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
web-hook.js FIX: Computed property override error for webhook.categories (#25418) 2024-01-25 12:25:02 +00:00