@ducna01120/fleetops-engine
Version:
Fleet & Transport Management Extension for Fleetbase
61 lines (55 loc) • 1.56 kB
JavaScript
import Component from '@glimmer/component';
import { action } from '@ember/object';
import contextComponentCallback from '@fleetbase/ember-core/utils/context-component-callback';
export default class OrderConfigManagerOverlayComponent extends Component {
/**
* Sets the overlay context.
*
* @action
* @param {OverlayContextObject} overlayContext
*/
setOverlayContext(overlayContext) {
this.context = overlayContext;
contextComponentCallback(this, 'onLoad', ...arguments);
}
/**
* Handles the cancel action.
*
* @method
* @action
* @returns {Boolean} Indicates whether the cancel action was overridden.
*/
onPressCancel() {
return contextComponentCallback(this, 'onPressCancel');
}
/**
* Handles the open action.
*
* @method
* @action
* @returns {Boolean} Indicates whether the cancel action was overridden.
*/
onOpen() {
return contextComponentCallback(this, 'onOpen');
}
/**
* Handles the close action.
*
* @method
* @action
* @returns {Boolean} Indicates whether the cancel action was overridden.
*/
onClose() {
return contextComponentCallback(this, 'onClose');
}
/**
* Handles the toggle action.
*
* @method
* @action
* @returns {Boolean} Indicates whether the cancel action was overridden.
*/
onToggle() {
return contextComponentCallback(this, 'onToggle');
}
}