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