mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 20:53:44 +08:00
8d4f405da4
Why this change? On the `/admin/customize/themes/<:id>` route, we allow admins to edit all settings via a settings editor. Prior to this change, trying to edit and save a typed objects theme settings will result in an error on the server.
11 lines
222 B
JavaScript
11 lines
222 B
JavaScript
import SiteSettingComponent from "./site-setting";
|
|
|
|
export default class extends SiteSettingComponent {
|
|
_save() {
|
|
return this.setting.updateSetting(
|
|
this.model.id,
|
|
this.get("buffered.value")
|
|
);
|
|
}
|
|
}
|