2023-02-13 05:53:15 -05:00
|
|
|
import SiteSettingComponent from "./site-setting";
|
2019-10-30 16:28:29 -04:00
|
|
|
import { alias } from "@ember/object/computed";
|
2018-03-04 19:04:23 -05:00
|
|
|
|
2023-02-13 05:53:15 -05:00
|
|
|
export default class ThemeTranslation extends SiteSettingComponent {
|
|
|
|
@alias("translation") setting;
|
|
|
|
type = "string";
|
|
|
|
@alias("translation.key") settingName;
|
2019-01-17 06:46:11 -05:00
|
|
|
|
2018-03-04 19:04:23 -05:00
|
|
|
_save() {
|
2019-05-27 04:15:39 -04:00
|
|
|
return this.model.saveTranslation(
|
2019-01-17 06:46:11 -05:00
|
|
|
this.get("translation.key"),
|
2018-03-04 19:04:23 -05:00
|
|
|
this.get("buffered.value")
|
|
|
|
);
|
2023-02-13 05:53:15 -05:00
|
|
|
}
|
|
|
|
}
|