open-nomad/ui/app/components/reschedule-event-row.js
Buck Doyle 9b2fb14e51
UI: Update Ember to 3.12 LTS (#6419)
This is mostly deprecation fixes and blueprint changes. There
are some dependency updates too; the changes to Ember
Basic Dropdown necessitated changing it to angle bracket
component invocation. The conversion of the rest of the
templates will happen separately.
2019-10-15 13:32:58 -05:00

21 lines
559 B
JavaScript

import Component from '@ember/component';
import { computed as overridable } from 'ember-overridable-computed';
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: overridable('allocationId', function() {
return this.store.findRecord('allocation', this.allocationId);
}),
time: null,
linkToAllocation: true,
label: '',
});