discourse/app/assets/javascripts/admin/addon/components/theme-translation.js

17 lines
396 B
JavaScript

import SiteSettingComponent from "./site-setting";
import { alias } from "@ember/object/computed";
export default class ThemeTranslation extends SiteSettingComponent {
@alias("translation") setting;
@alias("translation.key") settingName;
type = "string";
_save() {
return this.model.saveTranslation(
this.get("translation.key"),
this.get("buffered.value")
);
}
}