open-nomad/ui/app/components/client-node-row.js
Alex Dadgar e5ec915ac3 sync
2017-09-19 10:08:23 -05:00

25 lines
417 B
JavaScript

import Ember from 'ember';
const { Component } = Ember;
export default Component.extend({
tagName: 'tr',
classNames: ['client-node-row', 'is-interactive'],
node: null,
onClick() {},
click(event) {
this.get('onClick')(event);
},
didReceiveAttrs() {
// Reload the node in order to get detail information
const node = this.get('node');
if (node) {
node.reload();
}
},
});