FEATURE: allow themes to share color schemes

This commit is contained in:
Sam
2017-04-17 15:56:13 -04:00
parent 1872a1714f
commit 5e3a0846f7
14 changed files with 137 additions and 16 deletions

View File

@ -0,0 +1,10 @@
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")];
});
}
});