🐛 Fixed sticky "Unsaved changes" modal when leaving editor

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
This commit is contained in:
Kevin Ansfield 2019-01-21 09:18:51 +00:00
parent f10f7dce22
commit 39c850f4fe

View File

@ -4,9 +4,8 @@ import RSVP from 'rsvp';
export default ModalComponent.extend({
actions: {
confirm() {
this.confirm().finally(() => {
this.send('closeModal');
});
this.confirm();
this.send('closeModal');
}
},