mirror of
https://github.com/discourse/discourse.git
synced 2025-06-15 16:01:21 +08:00
DEV: Remove layoutName references to site-settings component template
This commit is contained in:
@ -1,12 +1,9 @@
|
||||
import BufferedContent from "discourse/mixins/buffered-content";
|
||||
import Component from "@ember/component";
|
||||
import SettingComponent from "admin/mixins/setting-component";
|
||||
import SiteSettingComponent from "./site-setting";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import { url } from "discourse/lib/computed";
|
||||
|
||||
export default Component.extend(BufferedContent, SettingComponent, {
|
||||
layoutName: "admin/templates/components/site-setting",
|
||||
updateUrl: url("model.id", "/admin/themes/%@/setting"),
|
||||
export default class extends SiteSettingComponent {
|
||||
@url("model.id", "/admin/themes/%@/setting") updateUrl;
|
||||
|
||||
_save() {
|
||||
return ajax(this.updateUrl, {
|
||||
@ -16,5 +13,5 @@ export default Component.extend(BufferedContent, SettingComponent, {
|
||||
value: this.get("buffered.value"),
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user