mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +03:00
39c850f4fe
no issue - the unsaved changes confirmation modal could re-appear after leaving the editor and re-opening the same post - remove the `.finally` which assumed the confirm action returns a promise so that the modal is properly closed
15 lines
308 B
JavaScript
15 lines
308 B
JavaScript
import ModalComponent from 'ghost-admin/components/modal-base';
|
|
import RSVP from 'rsvp';
|
|
|
|
export default ModalComponent.extend({
|
|
actions: {
|
|
confirm() {
|
|
this.confirm();
|
|
this.send('closeModal');
|
|
}
|
|
},
|
|
|
|
// Allowed actions
|
|
confirm: () => RSVP.resolve()
|
|
});
|