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';
|
2020-06-10 13:49:16 +00:00
|
|
|
import { tagName } from '@ember-decorators/component';
|
|
|
|
import classic from 'ember-classic-decorator';
|
2018-05-02 21:02:20 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@classic
|
|
|
|
@tagName('')
|
|
|
|
export default class RescheduleEventRow extends Component {
|
|
|
|
@service store;
|
2018-05-02 21:02:20 +00:00
|
|
|
|
|
|
|
// When given a string, the component will fetch the allocation
|
2020-06-10 13:49:16 +00:00
|
|
|
allocationId = null;
|
2018-05-02 21:02:20 +00:00
|
|
|
|
|
|
|
// An allocation can also be provided directly
|
2021-12-28 14:45:20 +00:00
|
|
|
@overridable('allocationId', function () {
|
2020-07-09 16:37:00 +00:00
|
|
|
if (this.allocationId) {
|
|
|
|
return this.store.findRecord('allocation', this.allocationId);
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
2020-06-10 13:49:16 +00:00
|
|
|
})
|
|
|
|
allocation;
|
2018-05-02 21:02:20 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
time = null;
|
|
|
|
linkToAllocation = true;
|
|
|
|
label = '';
|
|
|
|
}
|