github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/ui/app/components/job-row.js (about)

     1  import { inject as service } from '@ember/service';
     2  import Component from '@ember/component';
     3  import { lazyClick } from '../helpers/lazy-click';
     4  import { classNames, tagName } from '@ember-decorators/component';
     5  import classic from 'ember-classic-decorator';
     6  
     7  @classic
     8  @tagName('tr')
     9  @classNames('job-row', 'is-interactive')
    10  export default class JobRow extends Component {
    11    @service store;
    12  
    13    job = null;
    14  
    15    // One of independent, parent, or child. Used to customize the template
    16    // based on the relationship of this job to others.
    17    context = 'independent';
    18  
    19    onClick() {}
    20  
    21    click(event) {
    22      lazyClick([this.onClick, event]);
    23    }
    24  }