open-nomad/ui/app/components/reschedule-event-row.js
Buck Doyle 40332963ef
Update to Ember 3.16/Data 3.12 (#8319)
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.
2020-07-09 11:37:00 -05:00

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 = '';
}