491f4ff27d
Click events were greedily redirecting to the resource pages instead of first yielding to the anchor tag clicked if an anchor tag was in fact clicked.
26 lines
481 B
JavaScript
26 lines
481 B
JavaScript
import Ember from 'ember';
|
|
import { lazyClick } from '../helpers/lazy-click';
|
|
|
|
const { Component } = Ember;
|
|
|
|
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();
|
|
}
|
|
},
|
|
});
|