discourse/app/assets/javascripts/admin/controllers/admin-customize-themes.js.es6

11 lines
330 B
Plaintext
Raw Normal View History

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()];
});
}
});