mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 11:53:45 +08:00
11 lines
316 B
Plaintext
11 lines
316 B
Plaintext
|
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")];
|
||
|
});
|
||
|
}
|
||
|
});
|