@fleetbase/iam-engine
Version:
Fleetbase IAM extension provides identity and access management module for managing users, permissions and policies.
21 lines (16 loc) • 537 B
JavaScript
import Component from '@glimmer/component';
import { action } from '@ember/object';
export default class TableCellUserNameComponent extends Component {
onClick(event) {
const { row, column, onClick } = this.args;
if (typeof onClick === 'function') {
onClick(row, event);
}
if (typeof column?.onClick === 'function') {
column.onClick(row, event);
}
if (typeof column?.action === 'function') {
column.action(row, event);
}
}
}