24 lines
466 B
JavaScript
24 lines
466 B
JavaScript
import Component from '@ember/component';
|
|
import { lazyClick } from '../helpers/lazy-click';
|
|
|
|
export default Component.extend({
|
|
tagName: 'tr',
|
|
classNames: ['client-node-row', 'is-interactive'],
|
|
|
|
node: null,
|
|
|
|
onClick() {},
|
|
|
|
click(event) {
|
|
lazyClick([this.get('onClick'), event]);
|
|
},
|
|
|
|
didReceiveAttrs() {
|
|
// Reload the node in order to get detail information
|
|
const node = this.get('node');
|
|
if (node) {
|
|
node.reload();
|
|
}
|
|
},
|
|
});
|