FEATURE: List unused theme components (#6924)

This commit is contained in:
David Taylor
2019-01-23 09:20:13 +00:00
committed by GitHub
parent eb9377afd4
commit 2e59a37687
10 changed files with 56 additions and 49 deletions
@@ -13,17 +13,6 @@ export default Ember.Controller.extend({
addButtonDisabled: Ember.computed.empty("selectedChildThemeId"),
editRouteName: "adminCustomizeThemes.edit",
@computed("model", "allThemes", "model.component")
parentThemes(model, allThemes) {
if (!model.get("component")) {
return null;
}
const parents = allThemes.filter(theme =>
_.contains(theme.get("childThemes"), model)
);
return parents.length === 0 ? null : parents;
},
@computed("model.editedFields")
editedFieldsFormatted() {
const descriptions = [];