25d9004d3a
This is to later compose job detail page variations
13 lines
337 B
JavaScript
13 lines
337 B
JavaScript
import Component from '@ember/component';
|
|
import { computed } from '@ember/object';
|
|
|
|
export default Component.extend({
|
|
job: null,
|
|
|
|
classNames: ['boxed-section'],
|
|
|
|
sortedEvaluations: computed('job.evaluations.@each.modifyIndex', function() {
|
|
return (this.get('job.evaluations') || []).sortBy('modifyIndex').reverse();
|
|
}),
|
|
});
|