FIX: Computed property deprecation
This `description` field on a theme is returned from the server side and needn't be calculated in the front end. I tested in the UX and seems to work well.
This commit is contained in:
parent
fc63f0d316
commit
4e317e7aca
|
@ -282,15 +282,6 @@ const Theme = RestModel.extend({
|
|||
parentThemes.addObject(theme);
|
||||
},
|
||||
|
||||
@discourseComputed("name", "default")
|
||||
description: function(name, isDefault) {
|
||||
if (isDefault) {
|
||||
return I18n.t("admin.customize.theme.default_name", { name: name });
|
||||
} else {
|
||||
return name;
|
||||
}
|
||||
},
|
||||
|
||||
checkForUpdates() {
|
||||
return this.save({ remote_check: true }).then(() =>
|
||||
this.set("changed", false)
|
||||
|
|
Loading…
Reference in New Issue