2018-05-02 21:02:20 +00:00
|
|
|
import Component from '@ember/component';
|
2019-10-15 18:32:58 +00:00
|
|
|
import { computed as overridable } from 'ember-overridable-computed';
|
2018-05-02 21:02:20 +00:00
|
|
|
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
|
2019-10-15 18:32:58 +00:00
|
|
|
allocation: overridable('allocationId', function() {
|
2019-03-26 07:46:44 +00:00
|
|
|
return this.store.findRecord('allocation', this.allocationId);
|
2018-05-02 21:02:20 +00:00
|
|
|
}),
|
|
|
|
|
|
|
|
time: null,
|
|
|
|
linkToAllocation: true,
|
|
|
|
label: '',
|
|
|
|
});
|