2018-06-15 11:03:24 -04:00
|
|
|
import { default as computed } from "ember-addons/ember-computed-decorators";
|
2017-04-17 15:56:13 -04:00
|
|
|
|
|
|
|
export default Ember.Controller.extend({
|
2018-06-15 11:03:24 -04:00
|
|
|
@computed("model", "model.@each")
|
2017-04-17 15:56:13 -04:00
|
|
|
sortedThemes(themes) {
|
|
|
|
return _.sortBy(themes.content, t => {
|
2018-06-15 11:03:24 -04:00
|
|
|
return [
|
|
|
|
!t.get("default"),
|
|
|
|
!t.get("user_selectable"),
|
|
|
|
t.get("name").toLowerCase()
|
|
|
|
];
|
2017-04-17 15:56:13 -04:00
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|