1107798da6
Generated with a codemode: https://github.com/ember-cli/ember-modules-codemod
24 lines
477 B
JavaScript
24 lines
477 B
JavaScript
import Component from '@ember/component';
|
|
import { lazyClick } from '../helpers/lazy-click';
|
|
|
|
export default Component.extend({
|
|
tagName: 'tr',
|
|
classNames: ['job-row', 'is-interactive'],
|
|
|
|
job: null,
|
|
|
|
onClick() {},
|
|
|
|
click(event) {
|
|
lazyClick([this.get('onClick'), event]);
|
|
},
|
|
|
|
didReceiveAttrs() {
|
|
// Reload the job in order to get detail information
|
|
const job = this.get('job');
|
|
if (job && !job.get('isLoading')) {
|
|
job.reload();
|
|
}
|
|
},
|
|
});
|