40332963ef
This updates to Ember 3.16 but leaves Ember Data at 3.12 so we don’t need to use the model fragments beta. It can be reviewed on a commit-by-commit basis: blueprint updates, fixes for test failures, and the removal of now-deprecated partials. It’s not a true update to Octane as that would involve turning on template-only components by default, which breaks various things. We can accomplish that separately and then add the edition setting to package.json.
29 lines
751 B
JavaScript
29 lines
751 B
JavaScript
import Component from '@ember/component';
|
|
import { computed as overridable } from 'ember-overridable-computed';
|
|
import { inject as service } from '@ember/service';
|
|
import { tagName } from '@ember-decorators/component';
|
|
import classic from 'ember-classic-decorator';
|
|
|
|
@classic
|
|
@tagName('')
|
|
export default class RescheduleEventRow extends Component {
|
|
@service store;
|
|
|
|
// When given a string, the component will fetch the allocation
|
|
allocationId = null;
|
|
|
|
// An allocation can also be provided directly
|
|
@overridable('allocationId', function() {
|
|
if (this.allocationId) {
|
|
return this.store.findRecord('allocation', this.allocationId);
|
|
}
|
|
|
|
return null;
|
|
})
|
|
allocation;
|
|
|
|
time = null;
|
|
linkToAllocation = true;
|
|
label = '';
|
|
}
|