mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 23:13:53 +08:00
11 lines
330 B
JavaScript
11 lines
330 B
JavaScript
import { default as computed } from 'ember-addons/ember-computed-decorators';
|
|
|
|
export default Ember.Controller.extend({
|
|
@computed('model', 'model.@each')
|
|
sortedThemes(themes) {
|
|
return _.sortBy(themes.content, t => {
|
|
return [!t.get("default"), !t.get("user_selectable"), t.get("name").toLowerCase()];
|
|
});
|
|
}
|
|
});
|