open-nomad/ui/app/components/reschedule-event-row.js
Michael Lange 940a5325c7 New reschedule-event-row component
Intended to be used in a timeline view.
2018-05-04 19:36:54 -07:00

21 lines
542 B
JavaScript

import Component from '@ember/component';
import { computed } from '@ember/object';
import { inject as service } from '@ember/service';
export default Component.extend({
store: service(),
tagName: '',
// When given a string, the component will fetch the allocation
allocationId: null,
// An allocation can also be provided directly
allocation: computed('allocationId', function() {
return this.get('store').findRecord('allocation', this.get('allocationId'));
}),
time: null,
linkToAllocation: true,
label: '',
});