mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
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.
22 lines
415 B
JavaScript
22 lines
415 B
JavaScript
import Ember from 'ember';
|
|
import { lazyClick } from '../helpers/lazy-click';
|
|
|
|
const { Component } = Ember;
|
|
|
|
export default Component.extend({
|
|
tagName: 'tr',
|
|
|
|
classNames: ['allocation-row', 'is-interactive'],
|
|
|
|
allocation: null,
|
|
|
|
// Used to determine whether the row should mention the node or the job
|
|
context: null,
|
|
|
|
onClick() {},
|
|
|
|
click(event) {
|
|
lazyClick([this.get('onClick'), event]);
|
|
},
|
|
});
|