open-nomad/ui/app/components/task-group-row.js
Michael Lange 491f4ff27d Fix the links in table rows bug
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.
2017-09-26 11:59:42 -07:00

19 lines
322 B
JavaScript

import Ember from 'ember';
import { lazyClick } from '../helpers/lazy-click';
const { Component } = Ember;
export default Component.extend({
tagName: 'tr',
classNames: ['task-group-row', 'is-interactive'],
taskGroup: null,
onClick() {},
click(event) {
lazyClick([this.get('onClick'), event]);
},
});