mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 01:03:59 +08:00
a433b30650
This conversion was achieved using the ember-native-class-codemod, plus a handful of manual fixes/tweaks
17 lines
396 B
JavaScript
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")
|
|
);
|
|
}
|
|
}
|