FEATURE: ability to add all active components to theme (#8447)

* FEATURE: ability to add all active components to theme

* FIX: add a component to all themes takes only active ones

* FIX: move select components/themes to top

* FIX: improve defaultIsAvailable

* FIX: Add filter(Boolean) and remove btn class
This commit is contained in:
Krzysztof Kotlarek
2019-12-04 17:13:41 +11:00
committed by GitHub
parent 46fc45de99
commit bb69e8942e
7 changed files with 118 additions and 81 deletions
@@ -19,6 +19,7 @@ const Theme = RestModel.extend({
isActive: or("default", "user_selectable"),
isPendingUpdates: gt("remote_theme.commits_behind", 0),
hasEditedFields: gt("editedFields.length", 0),
hasParents: gt("parent_themes.length", 0),
@discourseComputed("theme_fields.[]")
targets() {