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:
Robin Ward 2020-07-28 11:55:47 -04:00
parent fc63f0d316
commit 4e317e7aca
1 changed files with 0 additions and 9 deletions

View File

@ -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)