@fleetbase/ember-ui
Version:
Fleetbase UI provides all the interface components, helpers, services and utilities for building a Fleetbase extension into the Console.
23 lines (19 loc) • 594 B
JavaScript
import Component from '@glimmer/component';
import { action } from '@ember/object';
export default class QueryBuilderActionsComponent extends Component {
onExecute() {
if (typeof this.args.onExecute === 'function') {
this.args.onExecute(this.queryObject);
}
}
onSave() {
if (typeof this.args.onSave === 'function') {
this.args.onSave(this.queryObject);
}
}
onClear() {
if (typeof this.args.onClear === 'function') {
this.args.onClear(this.queryObject);
}
}
}