mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 10:26:17 +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()
|
|
];
|
|
});
|
|
}
|
|
});
|