github.com/manicqin/nomad@v0.9.5/ui/app/components/reschedule-event-row.js (about)

     1  import Component from '@ember/component';
     2  import { computed as overridable } from 'ember-overridable-computed';
     3  import { inject as service } from '@ember/service';
     4  
     5  export default Component.extend({
     6    store: service(),
     7    tagName: '',
     8  
     9    // When given a string, the component will fetch the allocation
    10    allocationId: null,
    11  
    12    // An allocation can also be provided directly
    13    allocation: overridable('allocationId', function() {
    14      return this.store.findRecord('allocation', this.allocationId);
    15    }),
    16  
    17    time: null,
    18    linkToAllocation: true,
    19    label: '',
    20  });