github.com/ferranbt/nomad@v0.9.3-0.20190607002617-85c449b7667c/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.store.findRecord('allocation', this.allocationId); 15 }), 16 17 time: null, 18 linkToAllocation: true, 19 label: '', 20 });