909bd60db3
no issue - enter key when a modal is displayed will always trigger the `confirm` action, if it's not provided then the base modal will throw a `You must override the "confirm" action ...` error
14 lines
295 B
JavaScript
14 lines
295 B
JavaScript
import ModalComponent from 'ghost-admin/components/modal-base';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default ModalComponent.extend({
|
|
whatsNew: service(),
|
|
|
|
confirm() {},
|
|
|
|
actions: {
|
|
// noop - enter key shouldn't do anything
|
|
confirm() {}
|
|
}
|
|
});
|