2018-06-15 23:03:24 +08:00
|
|
|
import BufferedContent from "discourse/mixins/buffered-content";
|
|
|
|
import SettingComponent from "admin/mixins/setting-component";
|
2018-03-05 08:04:23 +08:00
|
|
|
|
|
|
|
export default Ember.Component.extend(BufferedContent, SettingComponent, {
|
2018-06-15 23:03:24 +08:00
|
|
|
layoutName: "admin/templates/components/site-setting",
|
2019-01-17 19:46:11 +08:00
|
|
|
setting: Ember.computed.alias("translation"),
|
|
|
|
type: "string",
|
|
|
|
settingName: Ember.computed.alias("translation.key"),
|
|
|
|
|
2018-03-05 08:04:23 +08:00
|
|
|
_save() {
|
2019-01-17 19:46:11 +08:00
|
|
|
return this.get("model").saveTranslation(
|
|
|
|
this.get("translation.key"),
|
2018-06-15 23:03:24 +08:00
|
|
|
this.get("buffered.value")
|
|
|
|
);
|
2018-03-05 08:04:23 +08:00
|
|
|
}
|
|
|
|
});
|