2017-09-19 14:47:10 +00:00
|
|
|
import Ember from 'ember';
|
2017-09-26 18:57:46 +00:00
|
|
|
import { lazyClick } from '../helpers/lazy-click';
|
2017-09-19 14:47:10 +00:00
|
|
|
|
|
|
|
const { Component } = Ember;
|
|
|
|
|
|
|
|
export default Component.extend({
|
|
|
|
tagName: 'tr',
|
|
|
|
classNames: ['client-node-row', 'is-interactive'],
|
|
|
|
|
|
|
|
node: null,
|
|
|
|
|
|
|
|
onClick() {},
|
|
|
|
|
|
|
|
click(event) {
|
2017-09-26 18:57:46 +00:00
|
|
|
lazyClick([this.get('onClick'), event]);
|
2017-09-19 14:47:10 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
didReceiveAttrs() {
|
|
|
|
// Reload the node in order to get detail information
|
|
|
|
const node = this.get('node');
|
|
|
|
if (node) {
|
|
|
|
node.reload();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
});
|