github.com/anuvu/nomad@v0.8.7-atom1/ui/app/components/reschedule-event-row.js (about) 1 import Component from '@ember/component'; 2 import { computed } from '@ember/object'; 3 import { inject as service } from '@ember/service'; 4 5 export default Component.extend({ 6 store: service(), 7 tagName: '', 8 9 // When given a string, the component will fetch the allocation 10 allocationId: null, 11 12 // An allocation can also be provided directly 13 allocation: computed('allocationId', function() { 14 return this.get('store').findRecord('allocation', this.get('allocationId')); 15 }), 16 17 time: null, 18 linkToAllocation: true, 19 label: '', 20 });