Ghost/ghost/admin/app/components/modal-leave-settings.js

18 lines
428 B
JavaScript
Raw Normal View History

import ModalComponent from 'ghost-admin/components/modal-base';
import RSVP from 'rsvp';
export default ModalComponent.extend({
actions: {
confirm() {
this.confirm().finally(() => {
if (!this.isDestroyed && !this.isDestroying) {
this.send('closeModal');
}
});
}
},
// Allowed actions
confirm: () => RSVP.resolve()
});