2019-08-31 20:51:14 -07:00
|
|
|
import Component from '@ember/component';
|
|
|
|
// @ts-ignore: Ignore import of compiled template
|
|
|
|
import template from '../../../templates/components/notifications/dialog/dialog-footer';
|
|
|
|
import { layout, tagName, classNames } from '@ember-decorators/component';
|
2020-11-09 12:17:51 -08:00
|
|
|
import { noop } from 'lodash-es';
|
2019-08-31 20:51:14 -07:00
|
|
|
|
|
|
|
@layout(template)
|
|
|
|
@tagName('footer')
|
|
|
|
@classNames('notification-confirm-modal__footer')
|
|
|
|
export default class NotificationsDialogDialogFooter extends Component {
|
|
|
|
/**
|
|
|
|
* Default handler for dialog confirmation
|
|
|
|
*/
|
|
|
|
onConfirm: () => void = noop;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Default handler for dialog dismissal
|
|
|
|
*/
|
|
|
|
onDismiss: () => void = noop;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Default handler for dialog tertiary action: toggle
|
|
|
|
*/
|
|
|
|
onDialogToggle: () => void = noop;
|
|
|
|
}
|