discourse/app/assets/javascripts/admin/addon/components/theme-setting-editor.js
David Taylor 48193767bf DEV: Sort imports
Automatically generated by `eslint --fix` to satisfy the updated configuration
2023-10-10 21:46:54 +01:00

18 lines
433 B
JavaScript

import { ajax } from "discourse/lib/ajax";
import { url } from "discourse/lib/computed";
import SiteSettingComponent from "./site-setting";
export default class extends SiteSettingComponent {
@url("model.id", "/admin/themes/%@/setting") updateUrl;
_save() {
return ajax(this.updateUrl, {
type: "PUT",
data: {
name: this.setting.setting,
value: this.get("buffered.value"),
},
});
}
}