discourse/app/assets/javascripts/admin/addon/components/theme-translation.js
David Taylor a433b30650
DEV: Convert admin component definitions to native class syntax (#20311)
This conversion was achieved using the ember-native-class-codemod, plus a handful of manual fixes/tweaks
2023-02-23 15:32:53 +00:00

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")
);
}
}