discourse/app/assets/javascripts/admin/controllers/admin-customize-themes.js.es6

17 lines
444 B
Plaintext
Raw Normal View History

2018-06-15 23:03:24 +08:00
import { default as computed } from "ember-addons/ember-computed-decorators";
2018-08-31 03:23:15 +08:00
import { THEMES } from "admin/models/theme";
export default Ember.Controller.extend({
2018-08-31 03:23:15 +08:00
currentTab: THEMES,
@computed("model", "model.@each.component")
fullThemes(themes) {
2018-08-31 03:23:15 +08:00
return themes.filter(t => !t.get("component"));
},
2018-08-31 03:23:15 +08:00
@computed("model", "model.@each.component")
childThemes(themes) {
return themes.filter(t => t.get("component"));
}
});