mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 01:32:23 +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()];
|
|
});
|
|
}
|
|
});
|