mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 19:03:13 +08:00
15 lines
362 B
JavaScript
15 lines
362 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()
|
|
];
|
|
});
|
|
}
|
|
});
|