UNPKG

@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
import Component from '@glimmer/component'; import { action } from '@ember/object'; export default class QueryBuilderActionsComponent extends Component { @action onExecute() { if (typeof this.args.onExecute === 'function') { this.args.onExecute(this.queryObject); } } @action onSave() { if (typeof this.args.onSave === 'function') { this.args.onSave(this.queryObject); } } @action onClear() { if (typeof this.args.onClear === 'function') { this.args.onClear(this.queryObject); } } }