mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:22:17 +08:00
FIX: Use <textarea> for theme translations (#14322)
Translations are often multi-line. Using a regular `<input>` doesn't allow newlines, so if you try to edit a multiline theme translation, all the line breaks will be removed. This commit updates the theme translations UI to use `<textarea>`, just like the core translation editing UI.
This commit is contained in:
@ -146,7 +146,9 @@ export default Controller.extend({
|
||||
|
||||
@discourseComputed("model.translations")
|
||||
translations(translations) {
|
||||
return translations.map((setting) => ThemeSettings.create(setting));
|
||||
return translations.map((setting) =>
|
||||
ThemeSettings.create({ ...setting, textarea: true })
|
||||
);
|
||||
},
|
||||
|
||||
hasTranslations: notEmpty("translations"),
|
||||
|
Reference in New Issue
Block a user